Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Serial Through a UART
Page 2 of 2 | |||||
Author | Message | ||||
seco61 Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 205 |
Hi Don. You are correct in your interpretation of how communication to the PCF8563 is handled. The issue is that pins 4 and 5 are already in use by the SPI 2 module.... and that is not I2C. That is why I (and Ken) have used the I2C 1 module as the pins (MCU 43 and 44) are available on the I/O connector and over-riding the pin 12/13 functonality is relatively easy. regards Gerard Regards Gerard (vk3cg/vk3grs) |
||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
Thanks Gerard, then it is beyond my scope to make a suggestion, so I have informed Richard of this thread and contents. Best he is aware of the problem. Cheers Don... https://www.dontronics.com |
||||
Tecc Newbie Joined: 30/05/2011 Location: AustraliaPosts: 2 |
Yes those pins were set aside to talk to the Real-time clock. Not using internal I2C module of the PIC, but bit-bashed I2C implementation using the pins as digital IO. Data and clock can be implemented using digital IO bit bashing. I2C as we know is not synchronous, and stuff can be clocked in and out at almost any speed. Yes, the clock chip has a set of I2C 'Registers' that can be Set and Read using the 2 wire I2C i.e the code is similar to found here http://en.wikipedia.org/wiki/I%C2%B2C This has not yet been implemented... Richard |
||||
seco61 Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 205 |
Hi Richard. I do not believe that pins 4 and 5 are available for digital I/O as the SPI 2 peripheral is active (it is used by MMBasic for video generation) and therefore pins 4, 5, 6 & 8 have been "taken over" by the SPI peripheral module. regards Gerard Regards Gerard (vk3cg/vk3grs) |
||||
jebz Regular Member Joined: 13/06/2011 Location: AustraliaPosts: 79 |
The video may be interrupted if you read the clock before the video system starts. This while not providing the most accurate use of the clock would be convenient as the internal clock function used by MM basic would be running very close to time most of the time. |
||||
jebz Regular Member Joined: 13/06/2011 Location: AustraliaPosts: 79 |
Have you completed your pic12f1822 i2c to serial converter? Would you share your code say on Don's file drop box. |
||||
aargee Senior Member Joined: 21/08/2008 Location: AustraliaPosts: 255 |
For those interested in Serial Bluetooth comms... Looky there Have a a close look at the title, and try and think how you would mount it.. - Rob For crying out loud, all I wanted to do was flash this blasted LED. |
||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
Arduino Shield? Is there a current UART and Bluetooth, to Arduino Shield available already?. This may be the simple answer to mounting it. Cheers Don... https://www.dontronics.com |
||||
seco61 Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 205 |
You will also require the ability to interact with the RTC device to set the date, time etc. This will require the video to be stopped, the pins reconfigured for I2C or GPIO and bit-bashed, and then re-initialised. While this can be done, it will require changes to the video code. regards Gerard Regards Gerard (vk3cg/vk3grs) |
||||
aargee Senior Member Joined: 21/08/2008 Location: AustraliaPosts: 255 |
Looky there Have a a close look at the title, and try and think how you would mount it.. - Rob Arduino Shield? Is there a current UART and Bluetooth, to Arduino Shield available already?. This may be the simple answer to mounting it. Cheers Don... Actually, Don, I was suggesting something more gutter-ish. After all it is an Anal Interface board. - Rob For crying out loud, all I wanted to do was flash this blasted LED. |
||||
elproducts Senior Member Joined: 19/06/2011 Location: United StatesPosts: 282 |
Looky there Have a a close look at the title, and try and think how you would mount it.. - Rob Arduino Shield? Is there a current UART and Bluetooth, to Arduino Shield available already?. This may be the simple answer to mounting it. Cheers Don... YES, several. Here are examples. RS232 Shield BlueTooth Shield There is a list of links to shields at the link below. Shield List www.elproducts.com |
||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
There is a list of links to shields at the link below. Shield List Thanks Chuck, WOW, love the way they do the pin out table for each individual shield, see: http://shieldlist.org/luke-weston/pebblehttp://shieldlist.org/luke-weston/pebble Obviously the way to travel, and I will follow suit, and also have a big peruse through all of them there shields. Cheers Don... https://www.dontronics.com |
||||
Page 2 of 2 |
Print this page |