1. Do anyone have link for example codes on PIC12F508. I searched but didn't find example codes specific to PIC12F508.
2. From datasheet what I can understand, there are no interrupts in this PIC. Not even Timer0 have interrupt.
Am I right?
3. In datasheet of PIC12F508, there is register TRISGPIO mentioned. But in its address N/A is written.
And in pic12f508.h file for hi-tech c compiler , both TRISGPIO & GPIO register have same address.
Why is that so, aren't both of them are different registers??
2. From datasheet what I can understand, there are no interrupts in this PIC. Not even Timer0 have interrupt.
Am I right?
3. In datasheet of PIC12F508, there is register TRISGPIO mentioned. But in its address N/A is written.
And in pic12f508.h file for hi-tech c compiler , both TRISGPIO & GPIO register have same address.
Why is that so, aren't both of them are different registers??
Code:
volatile unsigned char GPIO @ 0x006;
volatile control unsigned char TRIS @ 0x006;
volatile control unsigned char TRISGPIO @ 0x006;
// bit and bitfield definitions
volatile bit GP0 @ ((unsigned)&GPIO*8)+0;
volatile bit GP1 @ ((unsigned)&GPIO*8)+1;
volatile bit GP2 @ ((unsigned)&GPIO*8)+2;
volatile bit GP3 @ ((unsigned)&GPIO*8)+3;
volatile bit GP4 @ ((unsigned)&GPIO*8)+4;
volatile bit GP5 @ ((unsigned)&GPIO*8)+5;