Go to advanced search

by Tripel Hop
Sat Sep 01, 2012 11:32 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: USB to Serial
Replies: 5
Views: 6981

Re: USB to Serial

Maybe this observation may help as a reference: the ftdi_sio driver doesn't set the baudrate (other than 9600) properly after replugging the USB device (with ft232 chip) because it didn't see the replug. As a result writing data works but reading won't because of the wrong baudrate even when your pr...
by Tripel Hop
Sat Sep 01, 2012 11:23 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: More PWM pins....
Replies: 9
Views: 5210

Re: More PWM pins....

I'm using this i/o card: link It has 8 PWM channels, 8 I/Os, 8 ADC analog inputs, and an rtc. They also have a usb i/o card with 16 PWM outputs: link
by Tripel Hop
Wed Aug 29, 2012 11:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c repeated start transactions
Replies: 55
Views: 44046

Re: i2c repeated start transactions

So you want the write transfer to end up waiting for more data and then reprogram BSC0 with a read transfer, right? You can use usleep() to wait for the depletion of the shift-register. Yes, that's what I had in mind. A further thought that occurred to me was to use S.TA (Transfer Active) to detect...
by Tripel Hop
Wed Aug 29, 2012 4:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c repeated start transactions
Replies: 55
Views: 44046

Re: i2c repeated start transactions

I'm thinking along the lines of a write with DLEN set to 2, for example, but only one byte written to the FIFO. When either DLEN transitions to 1, or when TXE (or TXW) is asserted, then set up a read and start a transfer (C.ST | C.CLEAR | C.READ) - perhaps after waiting enough time for the underlyi...
by Tripel Hop
Tue Aug 28, 2012 11:33 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c repeated start transactions
Replies: 55
Views: 44046

Re: i2c repeated start transactions

Close, but that will not work. The write function will STOP the bus when it completes. A repeated start is a START condition that is given without a previous STOP being issued. The IMU will not properly respond if you do this: | START | WR ADR | REG | STOP | | START | RD ADR | BYTE | STOP | If this...
by Tripel Hop
Tue Aug 28, 2012 11:11 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c repeated start transactions
Replies: 55
Views: 44046

Re: i2c repeated start transactions

I did some direct programming of the I2C controller (BSC0) from user-space. It occured to me the BCM2835 doesn't support I2C repeated start. See the BCM2835 datasheet chapter 3 for more information. I'd reached that conclusion myself a while back, but I wonder if there isn't a way to make the perip...
by Tripel Hop
Tue Aug 28, 2012 9:25 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c repeated start transactions
Replies: 55
Views: 44046

Re: i2c repeated start transactions

I did some direct programming of the I2C controller (BSC0) from user-space. It occured to me the BCM2835 doesn't support I2C repeated start. See the BCM2835 datasheet chapter 3 for more information.
by Tripel Hop
Sat Aug 25, 2012 10:27 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: FTDI serial replug bug
Replies: 1
Views: 789

FTDI serial replug bug

Hello I'm experiencing an annoying replug bug with my FT232RL-based i/o card. In a nutshell: 1. I connect the FT232RL. It's attached to /dev/ttyUSB0. 2. I use the FT232RL with a program that interfaces with /dev/ttyUSB0. Everything's okay. 3. At some point, I replug the FT232RL. 4. I use the FT232RL...
by Tripel Hop
Sat Jun 30, 2012 10:14 pm
Forum: General programming discussion
Topic: Detecting the Raspberry Pi
Replies: 3
Views: 1237

Re: Detecting the Raspberry Pi

Thanks. I'm going to extract the "Hardware" line from /proc/cpuinfo in my program as it states the hardware family name "BCM2708". This line is also present on the BeagleBoard ("OMAP3 Beagle Board"). It's doesn't show up on my x86-based Linux systems though. A related question: what's the character ...
by Tripel Hop
Thu Jun 28, 2012 1:36 am
Forum: General programming discussion
Topic: Detecting the Raspberry Pi
Replies: 3
Views: 1237

Detecting the Raspberry Pi

Hello My Raspberry Pi is equipped with Debian 6 (dated 2012-04-19). I'm working on a program that controls an expansion board connected to the GPIO connector. The board is wired to the I2C bus. My program accesses /dev/mem to control to BCM2835 I2C part. My concern now is that my program is built as...

Go to advanced search