Hi All,
Made part of my project.It is works in programmed PIC and I found that instruction PAUSEUS give different reading in 1 uSec and 275 uSec.
So maybe I made mistake.Would you like to help to correct my program orCode:'Processor pic16F84A DEFINE OSC 20 ' __config _HS_OSC & _WDT_OFF & _CP_OFF set manually in .inc file TRISA = $0F ' Set PORTA to all input TRISB = %00000000 ' Set all of PORTB to outputs PORTB = $00 - - - - - ' Code below gives 275uSec pulse on PORTB.0 as expected PORTB = %00000001 PAUSEUS 270 '275uSEC on PORTB.0 PORTB = %10000001 PAUSEUS 5 - - - - ' Code below has to give 1 uSec pulse on PORTB.2 'Really I found 4 uSec pulse on PORTB.2 that is wrong PORTB = %00000100 PAUSEUS 1 - - -- - -
setting.
Best Regards![]()
Bookmarks