asic1984
Full Member level 5
![Full Member level 5](/styles/images/ranks/flevel2.gif)
code warrior ddra
hi
i tried this code in the codewarrier but when simulating it didnot make what it should do
the program simply just make porta output high
put in simulation no values are sent to porta or even ddra
thanks for help
hi
i tried this code in the codewarrier but when simulating it didnot make what it should do
the program simply just make porta output high
Code:
#define _REG_BASE 0
#define _P(off) *(unsigned char volatile *)(_REG_BASE + off)
#define PORTA _P(0x00)
#define DDRA _P(0x02)
void main(void) {
/* include your code here */
DDRA=0xff;
PORTA=0xff;
}
put in simulation no values are sent to porta or even ddra
thanks for help