![]() |
One wire in PIC16F84A
Hi everyone,
I'm just a new "apprentice" in this field. I'm contemporarily learning how to transfer data from one PIC16F84A to the other one, including how to receive the data, of course. I can read and understand MPAsm, Mikro Basic and CCS C quite well; so, if you know about this, you can help me in the aforementioned language. Thank you in advance. B |
Trích:
There are many ways to do what you want, using different interface protocols and standards. Unfortunately, PIC16F84A doesn't give you much power to do a lot of stuff in implementing those protocols and standards. So, could you be more specific on what you are trying to do? What sort of data are you transferring? How fast would you like your data to be transferred? Have you got any idea about the interface protocol/standard? Cheers, |
Thanks a lot for replying me.
I'm trying to make a simple calculator. As far as I am concerned, an LCD display requires 6 pins from the microcontroler, a simplest keypad needs 8 more pins --> we need at least 14 IO pins which is impossible for an PIC16F84A. Unfortunately, since I haven't a clue about microcontroler before, I just though everything was the same which made me I got the PIC16F84A. Now, I'm thinking that I might use one PIC6F84A for the keypad and then use one wire interface to transmiss the information to the other one which will manipulate the data and then display in the LCD. I did read the onewire example in MikroBasic but it's not satifiable, for the example is just for getting data from a themometer (DS1820). Furthermore, I think that I don't need a very high speed to do this task. Also, I'm just a novice, I have a very humble idea about interface protocol/standard. So, if anyone have any idea about what i gotta do, I'm very grateful to know. Thanks in advance |
Chảo Briantk,
I agree with namqn, that the 'f84 is not the best choice. It is old, and has no USART, etc. etc. Next time try a 16F628A, or a 16F88. You can free up some pins by using a 2 wire LCD interface, though. Take a look at this site for the hardware: http://www.rentron.com/Myke1.htm He gives examples in assembly, and somewhere I have source in ccs C to run it. I will try and find my source if you wish to go this route. I'm quite busy these days as I will move back to Canada in 3 weeks, but I'll watch this forum to see if you are interested. Regards |
Thanks so much. It must be the best that you can provide me with the source in CCS C. I hope you can post it soon
Regards Br |
Chảo,
I hope this works, but if you have any questions, I'll keep watching here... first the driver Code:
//////////////////////////////////////////////////////////////////////////// Code:
#if defined(__PCM__) |
Múi giờ GMT. Hiện tại là 01:58 AM. |
Tên diễn đàn: vBulletin Version 3.8.11
Được sáng lập bởi Đoàn Hiệp.
Copyright © PIC Vietnam