Search found 1725 matches
- Wed Apr 08, 2026 6:49 am
- Forum: General
- Topic: Parity bit
- Replies: 2
- Views: 25
Re: Parity bit
I would probably count the bits in both MSB and LSB. If a byte (LSB or MSB) is 0 - it won't affect the parity value - but if there is an error in transmission then it might not be 0 - and will affect the final result (if you use (MSB << 8) + LSB) Alternatively - if LSB must be 0 - ignore it - and us...
- Wed Apr 08, 2026 6:33 am
- Forum: General
- Topic: MCP320x 16-bit to Nano
- Replies: 11
- Views: 450
Re: MCP320x 16-bit to Nano
No I didn't use SPI here...
Just bit-bang the pins....
Martin
Just bit-bang the pins....
Martin
- Tue Apr 07, 2026 8:06 pm
- Forum: General
- Topic: Replace component: how to?
- Replies: 3
- Views: 66
Re: Replace component: how to?
... I posted a python script that does this at viewtopic.php?t=3279&hilit=Replace+component
It's not as smart - so you might need to tweak parameters afterwards - but it does work...
Martin
It's not as smart - so you might need to tweak parameters afterwards - but it does work...
Martin
- Tue Apr 07, 2026 12:05 pm
- Forum: General
- Topic: MCP320x 16-bit to Nano
- Replies: 11
- Views: 450
Re: MCP320x 16-bit to Nano
Looks though it's working reasonably....
I've done a version - but haven't been able to test yet.... Just toggles CLK and reads the 12 bits of data...
I think - the loop count might need changing - I have 15 (2 undefined, 1 null and 12 data)
Martin
I've done a version - but haven't been able to test yet.... Just toggles CLK and reads the 12 bits of data...
I think - the loop count might need changing - I have 15 (2 undefined, 1 null and 12 data)
Martin
- Tue Apr 07, 2026 9:19 am
- Forum: General
- Topic: ESP32 WROOM serial port woes
- Replies: 9
- Views: 187
Re: ESP32 WROOM serial port woes
That looks very like the one i have... Like some PIC MCUs - most functions can be directed to (nearly) any pin. There are a few reserved(connected) to things like the wi-fi module - however generally if it is broken out to a pin you can use it. The only 'fixed' pins are SPI if you need the highest s...
- Mon Apr 06, 2026 9:05 pm
- Forum: General
- Topic: ESP32 WROOM serial port woes
- Replies: 9
- Views: 187
Re: ESP32 WROOM serial port woes
The esp32 does offer a remarkable amount of 'bang' for the buck.... The programming paradigm ( :-) ) - is slightly different to most MCUs - for the most part because of the (co-operative) multi-tasking system used. It's worth playing along though - because the performance for such a low-price device...
- Mon Apr 06, 2026 7:11 pm
- Forum: General
- Topic: ESP32 WROOM serial port woes
- Replies: 9
- Views: 187
Re: ESP32 WROOM serial port woes
Hi Bob, I did a quick demo program - and the UARTs seem to work okay. I use two UARTs one (connected to UART1 - and thus to USB) and one to UART2 (I connected an FTDI convertor). Note that I also connected the Tx pin - and output a message here - as a sanity check. It looks for data at UART2 (I used...
- Mon Apr 06, 2026 2:09 pm
- Forum: General
- Topic: ESP32 WROOM serial port woes
- Replies: 9
- Views: 187
Re: ESP32 WROOM serial port woes
I have used a second UART successfully - for example viewtopic.php?t=3542&hilit=LiDAR - however i did this in C...
Can you upload a code snippet and a bit more detail what's going wrong...
Martin
Can you upload a code snippet and a bit more detail what's going wrong...
Martin
- Fri Apr 03, 2026 6:39 am
- Forum: General
- Topic: MCP320x 16-bit to Nano
- Replies: 11
- Views: 450
Re: MCP320x 16-bit to MC format question
To use the spi - probably use spi master. To compile you will need to specify a DOUT (MOSI)- it won't be connected to any thing - but this is okay (toggling the clock pin transfers the data). If using transactions - the dataout will be just be dummy data which will be ignored. Note that some MCUs on...
- Thu Apr 02, 2026 9:06 pm
- Forum: General
- Topic: MCP320x 16-bit to Nano
- Replies: 11
- Views: 450
Re: MCP320x 16-bit to MC format question
Yes - the SPI does just send and receive bytes (8 bits) - however characters are also just bytes too... Strings - 0 is treated as the end of the string - so receiving a string will 'stop' at this point. You could use Transaction to receive a byte at a time - just send 0 if no data to send (SPI is bi...