Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 02:43 29 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 : single chip serial input i2c devices

Author Message
MOBI
Guru

Joined: 02/12/2012
Location: Australia
Posts: 819
Posted: 05:50pm 03 Mar 2014
Copy link to clipboard 
Print this post

Hi all, I've been trying on and off for a few years to get a IR remote and PS2 keyboard working with i2c interface just using one MCU chip. I gave up and did it with two MCUs - no problems - works rock solid.

The problem with serial data is that it can't be interrupted and if an interrupt is used to allow all the input bits to be read in, the i2c side is likely to be disabled and some masters go into la la land.

I have got it working with one chip but I've had to insert large delays and use intricate MMBasic i2c code. If you type at about 2 characters per second it is reasonably ok but sometimes locks up.

Using 2 chips is fine because one handles the serial data in and the other the i2c with an "instantaneous" 8 bit transfer in between.

Has anybody else tried doing similar with a single chip? Suggestions welcome. Data buffering perhaps?
David M.
 
MOBI
Guru

Joined: 02/12/2012
Location: Australia
Posts: 819
Posted: 04:46pm 05 Mar 2014
Copy link to clipboard 
Print this post

Looks like no one else has any ideas either. I got it working...well, sort of but not good enough for fast reliable use, so I dump that idea and revert to my dual pic board that works just fine.

Unless I freeze the key board output until an i2c command releases it when ready for a single character? Maybe? Maybe not!
David M.
 
Print this page


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

© JAQ Software 2024