Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | Hardware I2C on BX24P

Discussion forum for the BasicX family of microcontroller chips.

Hardware I2C on BX24P - wwwoholic - Aug 15 19:43:37 2008

According to schematics BX24P uses ATmega8535 chip, wich has hardware
I2C support. I wonder, has anybody tried to use this interface from
BasicX program?

As I understand there are several questions here. First, access to TWI
registers. I hope it can be done via RAMPeek/RAMPoke.

Second, there is no way to use TWI interrupts for communication
control. I see two possibilities here: insert TWINT polling throughout
the code
or use the fact that SDA line is internally connected to INT1 input, so
theoretically I can poll TWINT from WaitForInterrupt task.

Does this look possible?

P.S. the goal of all this is to create multi-master network of BX24P
without bit-banging.
------------------------------------



(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )