Search found 32 matches
- Wed Apr 08, 2026 7:32 am
- Forum: General
- Topic: MCP320x 16-bit to Nano
- Replies: 13
- Views: 867
Re: MCP320x 16-bit to Nano
understood
- Wed Apr 08, 2026 7:31 am
- Forum: General
- Topic: Parity bit
- Replies: 4
- Views: 338
Re: Parity bit
Hi
Thanks Martin
However I do something wrong.
On the attached example the
byte = 10011100 (4 ones)
however the parity check = 5
---
As I use the byte only, this byte has: 1bit (r/w)+ 6 bits (regi addr) + 1bit (parity).
Should I remove the parity bit during the calculations?
Thanks Martin
However I do something wrong.
On the attached example the
byte = 10011100 (4 ones)
however the parity check = 5
---
As I use the byte only, this byte has: 1bit (r/w)+ 6 bits (regi addr) + 1bit (parity).
Should I remove the parity bit during the calculations?
- Wed Apr 08, 2026 6:29 am
- Forum: General
- Topic: Parity bit
- Replies: 4
- Views: 338
Re: Parity bit
Example
Data (16-bit): 1010 0101 1100 0011
Count of 1s: 8 (even)
Odd Parity Bit: 1
Resulting frame (with parity): 1010 0101 1100 0011 + 1
Data (16-bit): 1010 0101 1100 0011
Count of 1s: 8 (even)
Odd Parity Bit: 1
Resulting frame (with parity): 1010 0101 1100 0011 + 1
- Wed Apr 08, 2026 4:31 am
- Forum: General
- Topic: Parity bit
- Replies: 4
- Views: 338
Parity bit
Hi Tuss4470 IC uses SPI to communicate with the Master. Data format: (Reading the register) msb = 1 r/w bit + 6 regi-addr bits + parity bit lsb = 0x00 Odd parity bit should be calculated. The open source project uses the next: byte tuss4470Parity(byte* spi16Val) { return parity16(BitShiftCombine(spi...
- Wed Apr 08, 2026 12:49 am
- Forum: General
- Topic: MCP320x 16-bit to Nano
- Replies: 13
- Views: 867
Re: MCP320x 16-bit to Nano
Hi Martin
You did not use the SPI Master component.
Is the next step?
You did not use the SPI Master component.
Is the next step?
- Mon Apr 06, 2026 4:01 am
- Forum: General
- Topic: MCP320x 16-bit to Nano
- Replies: 13
- Views: 867
Re: MCP320x 16-bit to Nano
The result of some tests
https://www.youtube.com/watch?v=SwYRI7dR1hM
https://www.youtube.com/watch?v=SwYRI7dR1hM
- Fri Apr 03, 2026 11:48 pm
- Forum: General
- Topic: MCP320x 16-bit to Nano
- Replies: 13
- Views: 867
Re: MCP320x 16-bit to MC format question
Appreciate your help Martin
Will do some tests
Will do some tests
- Fri Apr 03, 2026 3:29 am
- Forum: General
- Topic: MCP320x 16-bit to Nano
- Replies: 13
- Views: 867
Re: MCP320x 16-bit to MC format question
MCP3201 does not have the Din. Only Dout. I cannot use the Transaction. I am thinking to use the CAL SPI, but not sure how to set the parameters (MCP2101 can receive the msb first or lsb first). I do not have some stable results with the MPC3201 Vin = floating. Even when I connect the Vin to 5v or t...
- Thu Apr 02, 2026 8:07 pm
- Forum: General
- Topic: MCP320x 16-bit to Nano
- Replies: 13
- Views: 867
Re: MCP320x 16-bit to MC format question
Looks like the spi protocol receive the bytes only:
SPI (Serial Peripheral Interface) receives and transmits bytes (8-bit data), not characters.
SPI (Serial Peripheral Interface) receives and transmits bytes (8-bit data), not characters.
- Thu Apr 02, 2026 7:41 pm
- Forum: General
- Topic: MCP320x 16-bit to Nano
- Replies: 13
- Views: 867
Re: MCP320x 16-bit to MC format question
Thank you Martin.
One more question.
The SPI Master component allows to receive the characters.
But (not like UART) in byte only 'word'.
Can I receive character by character?
One more question.
The SPI Master component allows to receive the characters.
But (not like UART) in byte only 'word'.
Can I receive character by character?