thank u aratti for reply i think the problem is in usart when pic goes in sleep mode the something aint working to receive data from PC TX , i tryed everythings 3days now but nothings .here where i have the problem, why it doesnt wake up the chip ?? lol
Code:
SLP:
OPTION_REG.7 = 0
RCSTA.4=0
pause 100
INTCON.6 = 1
RCSTA.4 = 1
PIE1.5 = 1
PIR1.5 = 0
@ SLEEP
@ NOP
GOTO LOOP
sorry for asking to much but i really wants to learn pbp very good im reading the whole datasheet every nights it helps and i get to much help and ideas from this forum thank u everyone
Bookmarks