Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 1st February 2008, 06:05 PM   #1
Default how send serial data with PIC

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
HCT-Pirate is offline  
Old 1st February 2008, 09:47 PM   #2
Default

Check my PIC tutorials, although it's not very clear what you want to do?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 2nd February 2008, 06:23 AM   #3
Default

thanx i was looking this part

Quote:
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
http://www.winpicprog.co.uk/pic_tutorial7.htm



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
HCT-Pirate is offline  
Old 2nd February 2008, 10:45 AM   #4
Default

It's still unclear what you're trying to do?, is it send syncronous serial?, and what's it got to do with an LCD?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 3rd February 2008, 03:28 PM   #5
Default

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
Attached Thumbnails
how send serial data with PIC-untitled.jpg  
HCT-Pirate is offline  
Old 3rd February 2008, 04:09 PM   #6
Default

Isn't this just SPI?, try searching for examples, and I think the 877 has it in hardware?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 3rd February 2008, 05:06 PM   #7
Default

i found that i can do that with 16F877 but i want know if it is posible to do it with 16F84

and thax
HCT-Pirate is offline  
Old 3rd February 2008, 05:27 PM   #8
Default

Quote:
Originally Posted by HCT-Pirate
i found that i can do that with 16F877 but i want know if it is posible to do it with 16F84
Yes, it's easy enough to do in software.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Tags
data, pic, send, serial

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
HD44780 lcd help jay543_uk Micro Controllers 12 8th November 2007 04:26 PM
Hardcode a PIC by hand? (or 16F74 + par.port.prog = problem) smilen Micro Controllers 15 21st November 2005 10:23 AM
How to get an HC11E to send data through a COM port? Thedoctorisin136 Micro Controllers 2 14th April 2005 01:41 PM
Serial Data Logging Software Monkeyman87 Micro Controllers 8 12th October 2004 04:32 PM
8051 microcontroller reading data from serial port godatguitar 8051/8951 11 17th February 2004 09:04 PM



All times are GMT. The time now is 08:58 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker