Search found 1086 matches

by basicchip
Fri May 19, 2023 8:49 pm
Forum: SPI and I2C
Topic: Simple example of I2c code " My World" request
Replies: 48
Views: 7070

Re: Simple example of I2c code " My World" request

Dim ProcStep(10) as String Declares an array of 10 bytes. Each byte contains 1 character. To access a single byte in ProcStep you use the parenthesis ProcStep (1) = 12 ' assigns a single byte to byte 1 of that array -- arrays have indices of 0 to 10 by your definition ProcStep = "a thing" ' assigns ...
by basicchip
Thu May 11, 2023 8:58 pm
Forum: SPI and I2C
Topic: Inconsistency between I2CIN and I2COUT
Replies: 2
Views: 631

Re: Inconsistency between I2CIN and I2COUT

Check the allowed syntax of the DO statement in the help files DO UNTIL i=30 is not one of them DO WHILE i <30 would be legal "254" is 3 bytes of the ASCII characters 2,5 and 4 You should get an error with CMD(0) = "254" as that tries to assign multiple bytes to a single byte. CMD = "254" would be O...
by basicchip
Thu May 11, 2023 8:53 pm
Forum: SPI and I2C
Topic: Simple example of I2c code " My World" request
Replies: 48
Views: 7070

Re: Simple example of I2c code " My World" request

I'm not sure why you think

LCD_String(2) =1

doesn't put a 1 in that byte position, I can assure you it does.

Print it out if you doubt it. Something else is going on.
by basicchip
Thu May 11, 2023 8:02 pm
Forum: SPI and I2C
Topic: Simple example of I2c code " My World" request
Replies: 48
Views: 7070

Re: Simple example of I2c code " My World" request

I am assuming your (decimal) and (byte) are really comments.

If you defined LCD_String as byte or string, then all the values are 8 bits or byte values. Byte values are 0 to 255. Any other values are truncated to 8 bits and stored in the array
by basicchip
Sun Apr 30, 2023 8:25 pm
Forum: Kitchen sink
Topic: Stacking processors
Replies: 1
Views: 891

Re: Stacking processors

The parts are tested to ambient temperatures of 85 C and rated to chip core temp of 150 C. (all in the NXP spec sheets) They consume 20-30 mW so not a lot of heat generated, depends a bit on are they going to be enclosed, any air movement (ventilation holes). I doubt there would be much of an issue,...
by basicchip
Thu Apr 20, 2023 11:20 am
Forum: SPI and I2C
Topic: Simple example of I2c code " My World" request
Replies: 48
Views: 7070

Re: Simple example of I2c code " My World" request

For true constants you can use the CONST declaration (see the help files)

The SuperPRO was also laid out to accept a serial EEPROM that you can add (it is not loaded normally) In the help files https://www.coridium.us/ARMhelp/index.h ... rPins.html
by basicchip
Wed Apr 19, 2023 11:42 am
Forum: SPI and I2C
Topic: Simple example of I2c code " My World" request
Replies: 48
Views: 7070

Re: Simple example of I2c code " My World" request

I believe the display has a multi-character keypad buffer so you shouldn't need to read it in a tight loop. But really you'll need to experiment with that.
by basicchip
Wed Apr 19, 2023 11:40 am
Forum: Other Hardware interfaces
Topic: Interfacing to old ttl chips
Replies: 5
Views: 996

Re: Interfacing to old ttl chips

Old CMOS CD devices require a Vih to switch high more than 3.3V so would either have to buffer those lines or replace them with CMOS devices that have TTL thresholds most CDxxxx devices have a 74HCTxxx equivalent. Consult the spec sheet.
by basicchip
Sat Apr 15, 2023 11:15 am
Forum: SPI and I2C
Topic: Simple example of I2c code " My World" request
Replies: 48
Views: 7070

Re: Simple example of I2c code " My World" request

For lost communication-- While it is possible to write a program to brick a device, it is not easy to do and there are ways to get it back. Though I doubt that is what you did. First are the LEDs lit on the USB dongle and SuperPRO (if not no power or shorted power) Does the USB dongle show up in the...