I Have A Litle Problem Here , And Am Sure I Will Find The Answer Here . The Problem Is :
Am Using Picbasic Pro Compiler .
I Need To Read Portb Value . And Then Send It Serially To Another Pic .
The Problem Is When I Connect My Pic16f84a It Send The Value Continuously Without Stop . And I Dont Need That I Need When I Make Pin 0 High Then Send "1" And When I Make Pin 7 High Send "128"
Etc . .
So What Can I Do For That ?
I Have A Litle Problem Here , And Am Sure I Will Find The Answer Here . The Problem Is :
Am Using Picbasic Pro Compiler .
I Need To Read Portb Value . And Then Send It Serially To Another Pic .
The Problem Is When I Connect My Pic16f84a It Send The Value Continuously Without Stop . And I Dont Need That I Need When I Make Pin 0 High Then Send "1" And When I Make Pin 7 High Send "128"
Etc . .
So What Can I Do For That ?
I think you are converting binary value to a Decimal value.This Decimal value you sending it to another PIC as I understand.
Diver300's answer will suits you backing up the old status & compare with the new status.If it is changed update the display otherwise exit the routine without sending serial data.