??? 07/28/06 17:19 Read: times |
#121290 - Dan Saks is your man Responding to: ???'s previous message |
He has info on this at Embedded.com. Essential reading!
You should also include volatile in case the address refers to a register that has inputs (can change value at times other than just when the CPU is writing to it): #define AnSL811reg *((volatile char far *)0x07F7FF) Here is one I used: #define FPGABASEADDR 0x8000 #define FANREG1 *(volatile U8 xdata * const)(FPGABASEADDR+0x4B) #define FANREG2 *(volatile U8 xdata * const)(FPGABASEADDR+0x4C) : etc |
Topic | Author | Date |
Absolute Addressing in Keil C51 | 01/01/70 00:00 | |
hmmmm | 01/01/70 00:00 | |
Winbond W77LE516 | 01/01/70 00:00 | |
Symbol vs Magic Number | 01/01/70 00:00 | |
Dan Saks is your man | 01/01/70 00:00 | |
answered eloquently in parallel post![]() | 01/01/70 00:00 |