manoj madhavan
Banned
- Joined
- May 1, 2010
- Messages
- 119
- Helped
- 5
- Reputation
- 10
- Reaction score
- 5
- Trophy points
- 1,308
- Location
- India, Kerala, Moolamattom
- Activity points
- 0
Hi All
I need the hex file for an asm code.. This is the code
Thank in advance
Regards
I need the hex file for an asm code.. This is the code
Code:
// PIC12F675
// 1Hz Time Base Osc.
// Timer1 Module
// 32.768 KHz
unsigned short tick;
void Init ();
void interrupt ()
{
if (PIR1.TMR1IF)
{
TMR1H = 0xE0;
PIR1.TMR1IF = 0;
tick = 1;
}
}
void main ()
{
tick = 0;
//Initialize Ports and Timer1 Module
Init ();
while (1)
{
if (tick)
{
tick = 0;
GPIO = (1 << 2);
}
if (TMR1H > 0xF0)
{
GPIO = 0;
}
}
}
void Init ()
Thank in advance
Regards