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 | Parallax Hitachi H48c Accelerometer

Discussion forum for the BasicX family of microcontroller chips.

Parallax Hitachi H48c Accelerometer - kuhns_casey - Aug 5 13:37:49 2006

Hello all, I have been working for some time now on interfacing this
accelerometer to the basicX-24. It is giving me real troubles. They
show the source code in Pbasic and they simply use shift commands. I
wish I coudl do the same but I need 12 bits. I looked up all the
indivudual chips and it uses SPI protocol I am assuming. what puzzles
me though is it uses one pin instead of 2 for the connection. How is
this supposed to work (especialy when I have to output data to the
accel to get data). I have been playing with the openspi and spicmd
commands for a while and nothing is working. Is there a timming
issue???

I have tried to go through the commands with SPI and I even tried to
use shift in commands. I can post my codes up here for all to look at.



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