??? 11/17/08 05:34 Read: times |
#160071 - This is one way Responding to: ???'s previous message |
Hi mehmet,
I use SDCC ver 2.4.0; This is an example how to declare sfr regs & bits. //declaring sfr registor address sfr at 0x80 P0 ;(write your comments here) sfr at 0x81 SP ; sfr at 0x82 DPL ; sfr at 0x83 DPH ; . . //declaring sfr bit address sbit at 0x88 IT0 ; sbit at 0x89 IE0 ; . . . //port bits sbit at 0x80 P0_0 ; sbit at 0x81 P0_1 ; . . Declare this in an header(.h) file, then include it in your 'c' source code. Please reply with outcome. Regards, Mahesh |
Topic | Author | Date |
SDCC declaring SFR bits | 01/01/70 00:00 | |
Manual | 01/01/70 00:00 | |
SDCC declaring SFR bits | 01/01/70 00:00 | |
Header files? | 01/01/70 00:00 | |
Header files? | 01/01/70 00:00 | |
The manual is not enough! | 01/01/70 00:00 | |
This is one way | 01/01/70 00:00 | |
That's not what the manual says | 01/01/70 00:00 | |
Those SFR definitions are working | 01/01/70 00:00 | |
Need someone who knows SDCC: Maarten Brock? | 01/01/70 00:00 | |
variant syntax of SDCC keywords and ANSI-C compatibility | 01/01/70 00:00 | |
C standard compliance | 01/01/70 00:00 | |
Common for all compilers | 01/01/70 00:00 | |
coders should think twice | 01/01/70 00:00 | |
The preprocessor is often a good friend | 01/01/70 00:00 | |
Suggestion | 01/01/70 00:00 | |
thanks, but...![]() | 01/01/70 00:00 |