Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:01 23 Nov 2024 Privacy Policy
Jump to

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: Australia
Posts: 205
Posted: 10:07pm 12 Jul 2011
Copy link to clipboard 
Print this post

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: Australia
Posts: 1313
Posted: 10:32pm 12 Jul 2011
Copy link to clipboard 
Print this post

  seco61 said   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


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: Australia
Posts: 2
Posted: 11:52pm 12 Jul 2011
Copy link to clipboard 
Print this post

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: Australia
Posts: 205
Posted: 01:00am 13 Jul 2011
Copy link to clipboard 
Print this post

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: Australia
Posts: 79
Posted: 10:49am 13 Jul 2011
Copy link to clipboard 
Print this post

  seco61 said  
I see that Richard is indeed using pins 4 and 5 for his I2C interface (I2C 4) to the PCF8563.

To use those pins for I2C, the video "subsystem" would have to be stopped as they are also part of the SPI 2 module.


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: Australia
Posts: 79
Posted: 10:59am 13 Jul 2011
Copy link to clipboard 
Print this post

  ksdesigns said   Im about done with my i2c to serial adapter .. it uses a pic12f1822 about 1.40$ from digikey and you can probably get free samples from microchip
its a 8pin chip so 2 for i2c 2 for serial and 2 for onewire
if i get around to it will also write some basic code to program it from the maximite
ken



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: Australia
Posts: 255
Posted: 10:38pm 14 Jul 2011
Copy link to clipboard 
Print this post

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: Australia
Posts: 1313
Posted: 10:51pm 14 Jul 2011
Copy link to clipboard 
Print this post

  aargee said   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


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: Australia
Posts: 205
Posted: 11:34pm 14 Jul 2011
Copy link to clipboard 
Print this post

  jebz said  
  seco61 said  
I see that Richard is indeed using pins 4 and 5 for his I2C interface (I2C 4) to the PCF8563.

To use those pins for I2C, the video "subsystem" would have to be stopped as they are also part of the SPI 2 module.


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.


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: Australia
Posts: 255
Posted: 01:14am 15 Jul 2011
Copy link to clipboard 
Print this post

  donmck said  
  aargee said   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


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 States
Posts: 282
Posted: 09:50pm 15 Jul 2011
Copy link to clipboard 
Print this post

  donmck said  
  aargee said   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


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: Australia
Posts: 1313
Posted: 10:12pm 15 Jul 2011
Copy link to clipboard 
Print this post

  elproducts said  
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


To reply to this topic, you need to log in.

© JAQ Software 2024