mailus
Full Member level 4
i am trying my first project in PIC16f84A LED flasher. it doesn't flash in simulation it's ok.why?
my programmer is also good condition.
TO CHECK MY PROGRAMMER I USED THIS CODE
IT'S WORKING..
MY PROBLEM IN THESE CODE
PORT B FLASH:
MY HEX CODE FOR PORTB FLASH:
my programmer is also good condition.
TO CHECK MY PROGRAMMER I USED THIS CODE
Code:
void main()
{
trisb=0x00;trisa=0x00;
portb=0x00;porta=0x00;
do {
portb=~portb;
delay_ms(5);
}while(1);
}
MY PROBLEM IN THESE CODE
PORT B FLASH:
Code:
void main()
{
trisa=0x00;
trisb=0x00;
porta=0x00;
portb=0x00;
do
{
portb=0xff;
delay_ms(30);
portb=0x00;
delay_ms(50);
}while(1);
}
MY HEX CODE FOR PORTB FLASH:
Code:
:020000001528C1
:0C00060083120D088A000C08820008001C
:1000120003208A110A128000840A8C0A03198D0AAD
:08002200C003031D09280800BA
:10002A00831685018601831285018601FF308600C9
:10003A002730CC00F530CD00CD0B2128CC0B212860
:10004A0086014130CC00EE30CD00CD0B2A28CC0BF6
:08005A002A2800001B283028B1
:02400E00F33F7E
:00000001FF
Last edited: