Continue to Site

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.

  • 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.

how send serial data with PIC

Status
Not open for further replies.

HCT-Pirate

New Member
hi thr


i need assembly code how to send serial data with pic 16F84a


i wana pin RA3 to be the output for serial data

also i want know how to generate clock pulse for with pic which is will be same time with send with serial data i wana use pin RA2 for tht
 
thanx i was looking this part

Ser_Loop RRF Xmit_Byte , f ;send one bit
BTFSS STATUS , C
BCF PORTB, 6
BTFSC STATUS , C
BSF PORTB, 6
CALL Bit_Delay
DECFSZ Bit_Cntr , f ;test if all done
GOTO Ser_Loop
BSF PORTB, 6
CALL Bit_Delay
RETURN



i want send the serial bit through pin RA3 to serial LCD


my 1st frame will be as this 00010 0001

but LCD also require clock pulse and this pulse should be synchronize with serial data i want this pulse generate when pic start RUNing i hope u can help me in this when i finish this i will put complete one there
 
i am using nokia LCD 3310 and it is has this pin
SCLK Input for the clock signal: 0.0 to 4.0 Mbits/s.
D/C LOW command mode or high DATA mode
SEC The enable pin allows data to be clocked in. The signal is
active LOW
RES RESET
SDIN 8 bit serial DATA in



i did every thing just remaining that there should be clock pulse for LCD

i want RA4 to generat clock pulse 4 LCD (am using 16F84)
some one told that i can use 16F877 which has bulid in clock pulse out which is pin RC3


i hope i make clear 4 u
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    18.7 KB · Views: 232
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top