Author Topic: Understanding N76E003 startup file by Keil  (Read 1330 times)

0 Members and 1 Guest are viewing this topic.

Offline Vindhyachal.taknikiTopic starter

  • Frequent Contributor
  • **
  • Posts: 490
Understanding N76E003 startup file by Keil
« on: July 21, 2018, 10:44:41 am »
I am working on Nuvoton N76E003 MCU & using Keil C51 for this. Keil added a startup file. I have below problem in understanding it:
1. Attached find the keil startup file.

2. The datasheet of N76 says it has 256 bytes of Idata RAM. & 756 bytes of Xdata.
But startup files on line 25 says:
IDATALEN EQU 80H ; the length of IDATA memory in bytes.

Is it an error?

3. But line 45 says
IBPSTACKTOP EQU 0FFH+1 ; set top of stack to highest location+1.

where stack is defined at top of RAM i.e 256 bytes.
Or this startup uses 128 bytes as RAM & fix rest of remaining top 128 bytes as stack space?
« Last Edit: July 21, 2018, 10:47:04 am by Vindhyachal.takniki »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf