Mar Posted July 28, 2005 Share Posted July 28, 2005 Vreau sa transmit pe USART in BCD pentru ca asa cere LabView. Am vazut o secventa a lui sofian cu eticheta DC dar nu inteleg. Cind se schimba eticheta DC din PIC? Va rog mult ajutati-ma cu o secventa de conversie din hex in BCD.Multumesc Link to comment
Cristiano Posted July 28, 2005 Share Posted July 28, 2005 Vreau sa transmit pe USART in BCD pentru ca asa cere LabView. Am vazut o secventa a lui sofian cu eticheta DC dar nu inteleg. Cind se schimba eticheta DC din PIC? Va rog mult ajutati-ma cu o secventa de conversie din hex in BCD.Multumesc DC: Digit carry/borrow bit (ADDWF, ADDLW, SUBLW, SUBWF instructions)(for borrow, the polarity is reversed)1 = A carry-out from the 4th low order bit of the result occurred0 = No carry-out from the 4th low order bit of the resultApplication Note pentru conversii BCD-binar si binar-BCD:http://ww1.microchip.com/downloads/en/A ... /00526.zip Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now