Author Topic: Datasheet Errors...........  (Read 3677 times)

0 Members and 1 Guest are viewing this topic.

Offline SmokeyTopic starter

  • Super Contributor
  • ***
  • Posts: 2736
  • Country: us
  • Not An Expert
Datasheet Errors...........
« on: July 31, 2023, 09:20:44 pm »
Find a datasheet with an error in it?

Rant about it here....
 

Offline SmokeyTopic starter

  • Super Contributor
  • ***
  • Posts: 2736
  • Country: us
  • Not An Expert
Re: Datasheet Errors...........
« Reply #1 on: July 31, 2023, 09:22:04 pm »
https://www.ti.com/lit/ds/symlink/uln2002a.pdf

Page 17.

Someone didn't check if their vector graphics formatted correctly.  Try implementing this example circuit as it looks like it's shown.. Good luck...

« Last Edit: July 31, 2023, 09:48:44 pm by Smokey »
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 6065
  • Country: de
Re: Datasheet Errors...........
« Reply #2 on: July 31, 2023, 10:05:57 pm »
Find a datasheet with an error in it?

Rant about it here....

Datasheets with typos and graphic errors: plenty.
But the one that really brings my blood to a boil is CD4046/MC14046/74HC4046.
The original data sheet was apparently written before PLLs were a big thing, and is deliberately obtuse on how to design the Loop Controller (aka Loop Filter).
The RRC filter in the DS will never work for a Type 2 PLL, but was copied from the original DS to the Motorola DS and uncritically propagated to the next generation 74HC4046 DS.
I had to go out and find "Phaselock Techniques" by Gardener ($100) and spend a week reading before I realized that the DS was lying to me (plus a TI app note, apparently written by an apprentice with very limited knowledge of PLLs).

No wonder that so many people are frustrated with this part.
 

Offline MarkS

  • Supporter
  • ****
  • Posts: 825
  • Country: us
Re: Datasheet Errors...........
« Reply #3 on: July 31, 2023, 10:08:28 pm »
Someone didn't check if their vector graphics formatted correctly.  Try implementing this example circuit as it looks like it's shown.. Good luck...

What? All it needs is a bidirectional transistor and a resisuctor! :-//
 

Offline SmokeyTopic starter

  • Super Contributor
  • ***
  • Posts: 2736
  • Country: us
  • Not An Expert
Re: Datasheet Errors...........
« Reply #4 on: July 31, 2023, 11:50:04 pm »
Someone didn't check if their vector graphics formatted correctly.  Try implementing this example circuit as it looks like it's shown.. Good luck...

What? All it needs is a bidirectional transistor and a resisuctor! :-//

I can't find that "resisuctor" anywhere.  Just like TI to use obsolete parts in their examples!
 

Offline jbb

  • Super Contributor
  • ***
  • Posts: 1193
  • Country: nz
Re: Datasheet Errors...........
« Reply #5 on: August 01, 2023, 01:11:36 am »
I can’t name the chip, but it comes from a major brand. Has a Vcc, a Vbackup from coin cell and a Vmain.

Data sheet says Vmain is meant to take power from eg a LiPo when Vcc is off. Original application guide said same.

Some time later we had grief with data corruption in backup SRAM and looked for updates. Data sheet info for Vmain hadn’t changed. No erratum issued. Application guide quietly changed to say ‘connect Vmain to ground.’  Assholes
 

Offline Berni

  • Super Contributor
  • ***
  • Posts: 5012
  • Country: si
Re: Datasheet Errors...........
« Reply #6 on: August 01, 2023, 10:01:56 am »
Less of an error but more asshole move.

Some chips in the STM32H7 had a bunch of stuff changed in the datasheet trough a chip revision. Things like ADC clock dividers changed, registers for USB moved around etc... but most importantly it changes the clock speed of the CPU from 400MHz to 480MHz.

So if you designed in that chip and the distributor you bought from had some old stock you might get the old revision chip while using the latest datasheet. I caught this luckily (likely by accident when looking at errata for some problem), however i had to order chips from 3 different distributors before i found one that had the new chips in stock, so all my prototypes would be the same new chip. Since the partnumber has not changed you can't specifically order the 'new one', all you can do is buy it and check the extra revision marking on the chip.

Not sure if the old revision chips could already run at 480MHz and they just changed their mind, but the erratas and chanelogs are worded in a way that suggest the do only work to 400MHz. Tho a 400MHz MCU most likely overclocks just fine to 480, they have a lot of safety margin. But still the hardware register changes will break most firmware.
 
The following users thanked this post: hans, Siwastaja

Offline igendel

  • Frequent Contributor
  • **
  • Posts: 365
  • Country: il
    • It's Every Bit For Itself (Programming & MCU blog)
Re: Datasheet Errors...........
« Reply #7 on: August 01, 2023, 10:10:24 am »
[Edit: No, in fact it's the default initialization code that's to blame, not the Datasheet. See posts below]
CH32V003 MCU Reference Manual (V1.3), it states that the reset value of bit 15 ("PA12_RM") in register AFIO_PCFR1 is "0", while in fact it is "1".
If you're going to use pins PA1 or PA2 as regular GPIOs, you'll have to change it back. Ask me how I know  |O
« Last Edit: August 02, 2023, 09:19:29 am by igendel »
Maker projects, tutorials etc. on my Youtube channel: https://www.youtube.com/user/idogendel/
 

Online HwAoRrDk

  • Super Contributor
  • ***
  • Posts: 1546
  • Country: gb
Re: Datasheet Errors...........
« Reply #8 on: August 01, 2023, 10:38:27 pm »
CH32V003 MCU Reference Manual (V1.3), it states that the reset value of bit 15 ("PA12_RM") in register AFIO_PCFR1 is "0", while in fact it is "1".
If you're going to use pins PA1 or PA2 as regular GPIOs, you'll have to change it back. Ask me how I know  |O

Are you sure about that? ??? I have a design using a CH32V003 that uses both PA1 & PA2 as GPIO and I've never had to touch the AFIO_PCFR1 register, which implies that the default reset value of PA12_RM is indeed zero.

Also, v1.5 of the Reference Manual (published recently on 20th July) has no changes to the description of PA12_RM compared to v1.3.
 

Online wraper

  • Supporter
  • ****
  • Posts: 17395
  • Country: lv
Re: Datasheet Errors...........
« Reply #9 on: August 01, 2023, 10:59:24 pm »
« Last Edit: August 01, 2023, 11:34:03 pm by wraper »
 
The following users thanked this post: magic

Offline igendel

  • Frequent Contributor
  • **
  • Posts: 365
  • Country: il
    • It's Every Bit For Itself (Programming & MCU blog)
Re: Datasheet Errors...........
« Reply #10 on: August 02, 2023, 12:20:30 am »
CH32V003 MCU Reference Manual (V1.3), it states that the reset value of bit 15 ("PA12_RM") in register AFIO_PCFR1 is "0", while in fact it is "1".
If you're going to use pins PA1 or PA2 as regular GPIOs, you'll have to change it back. Ask me how I know  |O

Are you sure about that? ??? I have a design using a CH32V003 that uses both PA1 & PA2 as GPIO and I've never had to touch the AFIO_PCFR1 register, which implies that the default reset value of PA12_RM is indeed zero.

Also, v1.5 of the Reference Manual (published recently on 20th July) has no changes to the description of PA12_RM compared to v1.3.

Absolutely sure, and verified yet again after reading your reply.

Here's the relevant part of my setup code:

Code: [Select]
    // Enable clock for ports A,C,D
    RCC->APB2PCENR |= 0x00000034;
    // For PA1/2 as GPIO, disable Crystal functionality
    AFIO->PCFR1 &= ~0x00008000;
    GPIOD->CFGLR = 0x44444441; // PD0 = Red
    GPIOA->CFGLR = 0x44444144; // PA2 = Green

System clock is the default internal oscillator. The green LED connected to PA2 is controllable (PA2->Resistor->LED->GND). If I comment out the AFIO line, it's always off.
If there's another explanation, I'd love to hear it, since I'm just beginning to learn this IC.

Chip is CH32V003F4P6 (TSSOP20). Only tried one unit so far. I'm using MounRiver Studio 1.85, but I'm skipping the default HAL functions to get a better grasp of the low-level stuff.
Maker projects, tutorials etc. on my Youtube channel: https://www.youtube.com/user/idogendel/
 

Online HwAoRrDk

  • Super Contributor
  • ***
  • Posts: 1546
  • Country: gb
Re: Datasheet Errors...........
« Reply #11 on: August 02, 2023, 01:43:08 am »
Absolutely sure, and verified yet again after reading your reply.

Also using TSSOP20 package here, with the HSI oscillator, and not using the SPL/HAL, nor even the default start-up code (I changed it not to call HAL's SystemInit() and to disable PFIC HPE).

I can't 100% state that the reset value in AFIO_PCFR1 is actually zero for me - I could probably look with a debugger - but whatever it is, I never change it (nothing in my code touches AFIO_PCFR1) and the PA1 & PA2 pins act as GPIOs for me (both are used as inputs). There is one difference in your initialisation to mine, but it would be weird if that made a difference - where I enable the peripheral clocks in RCC->APB2PCENR, I enable AFIOEN in addition to the necessary GPIO ports. Maybe, and this is just speculation, there could be a bug where if you don't enable the AFIO peripheral clock, it doesn't initialise the default value of AFIO_PCFR1 properly?

Or, perhaps this was a hardware bug in an initial revision of the chips? What are the markings on your chips? Mine are marked '412309C51'.
 
The following users thanked this post: igendel

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22101
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Datasheet Errors...........
« Reply #12 on: August 02, 2023, 03:45:20 am »
This utter nonsense from TI

 :-// You could say what you're reacting to...

There are several misrepresentations, but the basics are fine i.e. it turns on when it's on and it's off when it's off.  They don't mention diode drops so they might as well not exist.

There is an awful lot I see, still, of people putting diodes in parallel with MOSFETs, even with the new fangled symbols with the back diode drawn beside the thing already. Well, there's no accounting for poor education I'm afraid; no amount of my saying appnotes are trash, has made a lick of difference, nor complaining to the manufacturers that keep representing things so poorly.  The only thing we can do, is guide others to the truth, as we meet them, preferably with humility and grace.  Whether they figure out, or accept, the truth, is their own matter.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 6980
  • Country: pl
Re: Datasheet Errors...........
« Reply #13 on: August 02, 2023, 07:08:15 am »
This utter nonsense from TI

 :-// You could say what you're reacting to...
He could, but it doesn't take long to figure out.

They show current flowing through the parasitic body diodes of FETs which are turned on :palm:
 
The following users thanked this post: wraper

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22101
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Datasheet Errors...........
« Reply #14 on: August 02, 2023, 07:46:36 am »
I mean, it will happen, at some current (I > Vf / Rds(on)).  It could happen.  Not that it will necessarily.  It's not a bald faced lie; like I said, it's a misrepresentation.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 6980
  • Country: pl
Re: Datasheet Errors...........
« Reply #15 on: August 02, 2023, 09:08:18 am »
It's a lie by omission, as they fail to show the main principle of operation.

And it cannot really happen, because in such case the current would flow through both paths simultaneously.

Maybe if the SSR is particularly "underdriven" it could occur that both FETs are at their threshold and the "forward" one conducts by its body diode with negligible channel conduction (but still not zero) while the "reverse" one cannot so it heats up and increases its channel conductance thusly, but I think we are straying further and further from the fundamental principle ;)
 
The following users thanked this post: wraper

Online wraper

  • Supporter
  • ****
  • Posts: 17395
  • Country: lv
Re: Datasheet Errors...........
« Reply #16 on: August 02, 2023, 09:11:21 am »
This utter nonsense from TI

 :-// You could say what you're reacting to...

There are several misrepresentations, but the basics are fine i.e. it turns on when it's on and it's off when it's off.  They don't mention diode drops so they might as well not exist.

There is an awful lot I see, still, of people putting diodes in parallel with MOSFETs, even with the new fangled symbols with the back diode drawn beside the thing already. Well, there's no accounting for poor education I'm afraid; no amount of my saying appnotes are trash, has made a lick of difference, nor complaining to the manufacturers that keep representing things so poorly.  The only thing we can do, is guide others to the truth, as we meet them, preferably with humility and grace.  Whether they figure out, or accept, the truth, is their own matter.

Tim
It's literally circled. Any significant current basically never passes through the body diodes as both MOSFETs are always in the same ON or OFF state. The only time some current could pass is during state change. It's an utter incompetency of someone who has drawn that as minimum. And as it's a "Basic SSR theory", this garbage has found it's way in many other places.
Quote
but the basics are fine i.e. it turns on when it's on and it's off when it's off.
Except it describes HOW it works which is totally screwed up.
« Last Edit: August 02, 2023, 09:16:20 am by wraper »
 

Offline igendel

  • Frequent Contributor
  • **
  • Posts: 365
  • Country: il
    • It's Every Bit For Itself (Programming & MCU blog)
Re: Datasheet Errors...........
« Reply #17 on: August 02, 2023, 09:17:53 am »
Also using TSSOP20 package here, with the HSI oscillator, and not using the SPL/HAL, nor even the default start-up code (I changed it not to call HAL's SystemInit() and to disable PFIC HPE).

Ugh, that's it. I stepped over the code from the top, and startup_ch32v00x.S does call SystemInit, which calls SetSystemClock, which tries to set the clock to 48MHz HSE and meddles with AFIO->PCFR1 along the way. I just didn't notice that call before. So you were right, it's not a Datasheet error. Thank you for helping clearing that up  :-+
Maker projects, tutorials etc. on my Youtube channel: https://www.youtube.com/user/idogendel/
 
The following users thanked this post: Smokey

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13870
  • Country: gb
    • Mike's Electric Stuff
Re: Datasheet Errors...........
« Reply #18 on: August 02, 2023, 09:49:12 am »
IME at least as insidious are important things that are buried in a bunch of text so easily missed.

Here are a couple from TI and Microchip that have caught me.

On the Microchip one, this is literally the only place in the 350+ page datasheet that says these pins can't be outputs, and elsewhere they are listed as being I/O.
I was using this device as a sub for a very similar part that was unobtanium (PIC32MX174 vs. 32MX170), so never occurred that there may be different pin limitations. Luckily it was an easy track-hack.
 
« Last Edit: August 02, 2023, 09:51:43 am by mikeselectricstuff »
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 
The following users thanked this post: Berni

Online HwAoRrDk

  • Super Contributor
  • ***
  • Posts: 1546
  • Country: gb
Re: Datasheet Errors...........
« Reply #19 on: August 02, 2023, 10:24:32 am »
Ugh, that's it. I stepped over the code from the top, and startup_ch32v00x.S does call SystemInit, which calls SetSystemClock, which tries to set the clock to 48MHz HSE and meddles with AFIO->PCFR1 along the way. I just didn't notice that call before. So you were right, it's not a Datasheet error. Thank you for helping clearing that up  :-+

SetSysClock() should only be calling one of the functions that changes PCFR1 if you have a SYSCLK_FREQ_*_HSE defined. You've probably still got the default SYSCLK_FREQ_48MHz_HSE defined at the top of the system_ch32v00x.c you're using with your code. Either comment it out (to use default 24MHz HSI) or uncomment one of the SYSCLK_FREQ_*_HSI.

I don't know why the hell they made SYSCLK_FREQ_48MHz_HSE the default in all their example code. Even their own eval board only has a damned 24MHz crystal on it and half the people using the MCU elsewhere probably want to use the HSI oscillator. :palm:

This nonsense is why I jettisoned all of their code and only use the register defines. :)
« Last Edit: August 02, 2023, 10:27:21 am by HwAoRrDk »
 
The following users thanked this post: igendel

Online wraper

  • Supporter
  • ****
  • Posts: 17395
  • Country: lv
Re: Datasheet Errors...........
« Reply #20 on: August 02, 2023, 11:42:00 am »
I'll just once more will stress significance of this MOSFET SSR nonsense. If I google "mosfet ssr" in incognito mode, google shows this or its derived garbage as 1st, 2nd and 4th results. And many beginners take it at face value
 

Offline SmokeyTopic starter

  • Super Contributor
  • ***
  • Posts: 2736
  • Country: us
  • Not An Expert
Re: Datasheet Errors...........
« Reply #21 on: January 02, 2024, 07:04:52 am »
Here's a funny one from an old datasheet.
HA-2520 opamp:
Original Harris datasheet (correct)= https://docs.rs-online.com/5e64/0900766b80029c41.pdf
Intersil datasheet (wrong)= https://pdf1.alldatasheet.com/datasheet-pdf/view/177417/INTERSIL/HA2-2520-2.html
New Renesas datasheet (correct)= https://www.renesas.com/us/en/document/dst/ha-2520-ha-2522-ha-2525-datasheet?r=505396

Right in the second paragraph of the banner spec description they got the slew rate units wrong.  120V/ms instead of 120V/us.  How does that make it through review? At least they fixed it in the Renesas version.
« Last Edit: January 02, 2024, 07:17:26 am by Smokey »
 

Offline moffy

  • Super Contributor
  • ***
  • Posts: 1967
  • Country: au
Re: Datasheet Errors...........
« Reply #22 on: January 02, 2024, 07:32:24 am »
Here's a funny one from an old datasheet.
HA-2520 opamp:
Original Harris datasheet (correct)= https://docs.rs-online.com/5e64/0900766b80029c41.pdf
Intersil datasheet (wrong)= https://pdf1.alldatasheet.com/datasheet-pdf/view/177417/INTERSIL/HA2-2520-2.html
New Renesas datasheet (correct)= https://www.renesas.com/us/en/document/dst/ha-2520-ha-2522-ha-2525-datasheet?r=505396

Right in the second paragraph of the banner spec description they got the slew rate units wrong.  120V/ms instead of 120V/us.  How does that make it through review? At least they fixed it in the Renesas version.

Some people possibly think that the 'm' in 'ms' stands for micro rather than milli.
 

Offline SmokeyTopic starter

  • Super Contributor
  • ***
  • Posts: 2736
  • Country: us
  • Not An Expert
Re: Datasheet Errors...........
« Reply #23 on: August 06, 2024, 03:20:28 am »
Its not an error exactly.. but the PCB Footprint is shown from the BOTTOM VIEW!!!??????  Who does that?

https://www.kycon.com/Pub_Eng_Draw/STX-3000.pdf

... Also WTF square PCB holes with 90deg corners????
« Last Edit: August 06, 2024, 05:19:57 am by Smokey »
 

Offline Berni

  • Super Contributor
  • ***
  • Posts: 5012
  • Country: si
Re: Datasheet Errors...........
« Reply #24 on: August 06, 2024, 05:02:48 am »
Its not an error exactly.. but the PCB Footprint is shown from the BOTTOM VIEW!!!??????  Who does that?

https://www.kycon.com/Pub_Eng_Draw/STX-3000.pdf

Yep i had a similar thing happen to be with a SPDT relay, where they show a bottom view in the PCB layout drawing. WHY

This was not noticed until later on because the footprint still fit, but my NC and NO contacts were swapped around.  |O
« Last Edit: August 06, 2024, 05:04:20 am by Berni »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf