Search found 9 matches
- Mon Jun 01, 2020 3:39 pm
- Forum: EzSBC1
- Topic: PORT command in Basic
- Replies: 2
- Views: 10537
Re: PORT command in Basic
Thanks for the tip to look at the schematic! I revised my test board and can now read input bits. The difficulty is finding which 12 bits will work best as there are some gaps and some dedicated port pins that I will have to work around. But I think I can accomplish what I need to.
- Sat May 30, 2020 12:48 pm
- Forum: EzSBC1
- Topic: PORT command in Basic
- Replies: 2
- Views: 10537
PORT command in Basic
I want to ask a question about the Basic command, PORT. I would like to read a 12-bit input on my EzSBC1 and print the result as a number. If I understand this command, I can set 12 pins to inputs (P0.0 to P0.11, say), execute x = PORT(0), and then AND the result with some appropriate number to get ...
SPI setup
I am attempting to control an Analog Devices DDS chip - the AD9835BRU - from an ExSBC1 card using the SPI port. The Basic call you provide to send bytes uses the SPI protocol with CPOL = CPHA = 0. The DDS chip requires CPOL = 0 and CPHA = 1, however. Is there a way to setup the SPI port to use this ...
- Mon Mar 30, 2015 8:58 am
- Forum: EzSBC1
- Topic: Array memory limits
- Replies: 1
- Views: 9183
Re: Array memory limits
Had another thought about saving my data: An old way to store stuff (like machine code) in Basic was to save the hex data in string arrays. I can't tell from the manual but are there any limits on the characters you can store as strings? I could parse up my integer data and add it as characters to t...
- Mon Mar 30, 2015 8:36 am
- Forum: EzSBC1
- Topic: Array memory limits
- Replies: 1
- Views: 9183
Array memory limits
I'm thinking about building a couple of mini-dataloggers for my race car. I'd like to log time, the analog output of a ride-height sensor, and maybe a measure of rpm using the PULSIN command (I've already made a quicky TACH using this command). With maybe 16K of RAM available to store data, I'm wond...
- Thu Feb 05, 2015 9:31 am
- Forum: EzSBC1
- Topic: ADC burst mode?
- Replies: 2
- Views: 10211
Re: ADC burst mode?
Even just a pointer into RAM would work. A loop with PEEKS could retrieve the data. When you need a set of evenly-spaced samples of something, usually you have ample time after the event to process the data before the next set of samples are taken. Or ... could you pass the address of an array to th...
- Wed Feb 04, 2015 9:30 am
- Forum: EzSBC1
- Topic: ADC burst mode?
- Replies: 2
- Views: 10211
ADC burst mode?
I'm not sure how many folks might need this but I would dearly love to have a burst mode for the INADC command. My ideal command would be: ARRAY = INADC(<pin#>,<number of samples>,<time between samples>) The ADC on the LP2138 claims speeds up to 2.4 uSec between samples. I would be happy with multip...
- Wed Feb 04, 2015 9:22 am
- Forum: EzSBC1
- Topic: EZsbc gps speedometer
- Replies: 1
- Views: 9889
EZsbc gps speedometer
My first real 'project' using the EZsbc1 has been to construct a speedometer for my race car. I race at Bonneville on the salt flats. The course is five miles long and only sort of smooth. As you reach the end of the course (at over 200 mph!), things are shaking and bouncing and all your concentrati...
- Wed Jan 21, 2015 12:05 pm
- Forum: EzSBC1
- Topic: I2C workaround
- Replies: 1
- Views: 8915
I2C workaround
I recently attached an Adafruit 1.2" LED backpack to an EZsbc1. This backpack uses the I2C bus for setup and data transfer. Initialization of the driver chip on this card (Holtek HT16K33) requires sending it three command bytes, each preceded by the board address. Intially, I used the command c...