Page 1 of 1
Get VS1010 Chip Unique ID
Posted: Wed 2021-09-22 11:11
by avizet
Hi!
I want to get the VS chip unique ID.
You can enable the serial number and write the serial number fields in parametric_x to a fixed value (0x1e3e->WRAMADDR, 1->WRAM, 0->WRAM) before starting the encoding.
(You can also overwrite the cosmetic chip ID if you want.)
By using the address (0x1e3e), Can I get the Unique Chip ID? I'm using the below code for the MAC address.
Code: Select all
u_int16 *ptr = (u_int16 *)0x1e3e; // MSP430->0x1A0A & VS1010-> 0x1e3e
// get MAC_ID
MAC_ID[0] = ptr[0]; // wafer ID
MAC_ID[1] = ptr[1];
MAC_ID[2] = ptr[2]; // X position
MAC_ID[3] = ptr[3]; // Y Pisition
printf("MAC ID: %x:%x:%x:%x\r\n", MAC_ID[0], MAC_ID[1], MAC_ID[2], MAC_ID[3]);
Thank You.
Re: Get VS1010 Chip Unique ID
Posted: Tue 2021-09-28 7:54
by Hannu
The instruction you are following applies to VS1053 or other slave codec chip. VS1010 doesn't have that kind of feature.
If serial number or similar is required it needs to be saved to external SPI flash or other storage.
Re: Get VS1010 Chip Unique ID
Posted: Tue 2021-09-28 9:50
by avizet
Hi!
Thanks for the replay.
I want to buy some development board for my R&D. Can you please suggest me the list of chip or development board which will support the below requirements:
1. Communicate with external i2c peripheral. (If directly have i2c pin like Arduino then also welcome)
2. Have Unique chip address.
3. Have RTC support.
4. Have ADC & DAC both.
5. Have flash storage supported. (SD will be plus point)
6. SD storage file writing have append function. (Optional)
Thank You!
Re: Get VS1010 Chip Unique ID
Posted: Tue 2021-09-28 10:54
by Hannu
avizet wrote: ↑Tue 2021-09-28 9:50
1. Communicate with external i2c peripheral. (If directly have i2c pin like Arduino then also welcome)
Arduino stuff usually is 5V stuff and our chips aren't 5V tolerant.
2. Have Unique chip address.
VS1005 with internal flash
3. Have RTC support.
VS1010 and VS1005 have RTC driver
4. Have ADC & DAC both.
VS1005
5. Have flash storage supported. (SD will be plus point)
VS1005
6. SD storage file writing have append function. (Optional)
VS1005 has append. Other chips don't have enough memory to justify the code bloating which append requires.
Have a look at developer board. It has nice things.
Re: Get VS1010 Chip Unique ID
Posted: Tue 2021-09-28 11:31
by pasi
avizet wrote: ↑Wed 2021-09-22 11:11By using the address (0x1e3e), Can I get the Unique Chip ID?
You've probably misunderstood, and at least mixed up various ICs of ours. That field 0x1e3e/0x1e3f in parametric_x is used for
you to optionally provide a stream ID for the Ogg Vorbis encoding in
vs1063a.
Some vs1053b and vs1063a IC's have a unique ID in addresses 0x1e00 & 0x1e01. However,
this is not guaranteed. You could have 0 or some other value for all of the ICs.
VS1010 is totally different. In vs1010, address 0x1e3e is in the middle of the available X memory space where your own programs are linked to, so it will be either random after each power-on, or some data of your own program's variables.
Re: Get VS1010 Chip Unique ID
Posted: Thu 2021-09-30 10:26
by avizet
Hi!
Thanks both of you for the response. Now, I'm thinking about to buy the VS1005 development board. I guess it will full-fill all my requirements and this one is the best for communicate with external peripheral.
Thank you!