muganga
Newbie level 6
I trying simulate the following code. I did not find option: PIC CPU SOURCE CODE...just REGISTERS, DATAMEMORY, PROGRAM MEMORY AND STACK.
I want assist what values the variable counter get during running the program.
Is it possible use proteus??
#include <16C77.h>
#use delay(clock=4000000)
#include <lcd.c>
#int_TIMER0
void TIMER0()
{
int counter;
set_timer0(0);
if(counter == 15)
{
counter++;
}
}
void main() {
setup_timer_0(RTCC_INTERNAL| RTCC_DIV_256|RTCC_8_BIT); //clock interno; prescaler; 8bits
enable_interrupts(INT_RTCC);
enable_interrupts(GLOBAL);
lcd_init();
lcd_gotoxy(1,1);
lcd_putc("teste");
}
tks
fernando
I want assist what values the variable counter get during running the program.
Is it possible use proteus??
#include <16C77.h>
#use delay(clock=4000000)
#include <lcd.c>
#int_TIMER0
void TIMER0()
{
int counter;
set_timer0(0);
if(counter == 15)
{
counter++;
}
}
void main() {
setup_timer_0(RTCC_INTERNAL| RTCC_DIV_256|RTCC_8_BIT); //clock interno; prescaler; 8bits
enable_interrupts(INT_RTCC);
enable_interrupts(GLOBAL);
lcd_init();
lcd_gotoxy(1,1);
lcd_putc("teste");
}
tks
fernando