• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Convert and transmit

Not open for further replies.


New Member
Wow....it took me whole day to settle my configurations for the pins. Now what i need to do is having UART over pre-built hardware UART on RB5 of 16F88. I am now having a variable called AmpHour which is stored as this:

	add1632	Amps,AmpSum	; AmpSum = accumulated Amps
	mov32	AmpSum,dd
	movi16	3600*3,aa	; 3 reads per second, 3600 seconds per hour
	call	Div32		; AmpHours = AmpSum  / (reads per hour)
	mov16	dd+2,AmpHours
It is a 16 bits binary. I need to convert it to human readable ASCII and send it using UART. Huh....learning by the way..
Last edited:
Not open for further replies.

Latest threads

EE World Online Articles