Iar Embedded Workbench For 8051 _hot_ 🌟 🎯
// Banking support #pragma bank=1 void far_function(void) __banked; 5.1 Project Structure my_project/ ├── src/ │ ├── main.c │ ├── uart.c │ ├── timer.c │ └── isr.c ├── inc/ │ ├── device.h │ └── uart.h ├── iar/ │ ├── my_project.ewp (project file) │ ├── my_project.eww (workspace) │ └── settings/ └── output/ ├── exe/ └── obj/ 5.2 Device Header Example (device.h) #ifndef DEVICE_H #define DEVICE_H #include <io8051.h>
__sfr __no_init volatile unsigned char TMOD @ 0x89; __sfr __no_init volatile unsigned char TCON @ 0x88; __sfr __no_init volatile unsigned char TH0 @ 0x8C; __sfr __no_init volatile unsigned char TL0 @ 0x8A; __sfr __no_init volatile unsigned char SCON @ 0x98; __sfr __no_init volatile unsigned char SBUF @ 0x99; iar embedded workbench for 8051
// SFR bits __sfr __no_init volatile unsigned char P0 @ 0x80; __sfr __no_init volatile unsigned char P1 @ 0x90; __sfr __no_init volatile unsigned char P2 @ 0xA0; __sfr __no_init volatile unsigned char P3 @ 0xB0; iar embedded workbench for 8051
Rellene su nombre y apellidos para comentar