LPC5536: on DAC current sources (ZTC, PTAT)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC5536: on DAC current sources (ZTC, PTAT)

4,730 Views
danielholala
Senior Contributor II

Hello,

I'm currently evaluating the DAC of LPC5536-EVK.

After reading the reference manual, it's still not clear to me what to do with DAC's "current sources":

48.1.4. To initialize the DAC module:
...

  • Enable VREF module (PDRUNCFGCLR0[PDEN_VREF] = 1) in PMC register. DAC PTAT and ZTC current sources comes from VREF module.

 

This does not explicitly state to enable these current sources. Do I have to enable them, maybe both of them?

This is a valid question as these current sources can be enabled separately in Global Control register (GCR):

Bit 21 IREF_ZTC_EXT_SEL
External On-Chip ZTC Current Reference Select
Selects the external ZTC current reference, which is from the VREF module. See the Chip-specific section for more information.
0 - Not selected
1 - Selected

Bit 20 IREF_PTAT_EXT_SEL
External On-Chip PTAT Current Reference Select
Selects the external PTAT current reference, which is from the VREF module. See the Chip-specific section for more information.
0 - Not selected
1 - Selected

*rant* Here, the current source is called "current reference". What has driven the author to suddenly change the terminology? This is a technical document. Choose your term and stick to it! *rant end*

Further, the chip-specific section does not contain more information on these current sources. Where is it?

What is the advantage / disadvantage of PTAT or ZTC current source? The product data sheet is silent about their characteristics.

Please advise!
Thanks.
Daniel

 

 

 

Labels (2)
0 Kudos
Reply
4 Replies

4,676 Views
danielholala
Senior Contributor II

Note: When configuring DAC using Peripherals Tool, it does not require VREF to be configured. I presume this is a bug. Instead, Peripherals Tool should show a warning / error message in the Problems window to this end.

0 Kudos
Reply

747 Views
danielholala
Senior Contributor II

Regarding enabling VREF, this issue has been fixed in MCUXpresso IDE 25.6.

4,679 Views
danielholala
Senior Contributor II

@xiangjun_rong , I agree completely. 

Thanks for the slides. However, I did not find any information on ZTC or PTAT current sources.

Could you forward the question to a Systems Engineer who is concerned with DAC?

Best regards,
Daniel

0 Kudos
Reply

4,693 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I have to say that the Reference manual of LPC553x is not good, there is not a clear description about the ZTC and PTAT current source, including the mechanism, application, the relationship with DAC...

 

xiangjun_rong_0-1697426015895.png

I attach an training about the Vref and DAC, hope it can shed a light on the two modules.

BR

XiangJun Rong

%3CLINGO-SUB%20id%3D%22lingo-sub-1739492%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPC5536%3A%20on%20DAC%20current%20sources%20(ZTC%2C%20PTAT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1739492%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI'm%20currently%20evaluating%20the%20DAC%20of%20LPC5536-EVK.%3C%2FP%3E%3CP%3EAfter%20reading%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2Fsps%2Fdownload%2Flicense.jsp%3FcolCode%3DLPC553xRM%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ereference%20manual%3C%2FA%3E%2C%20it's%20still%20not%20clear%20to%20me%20what%20to%20do%20with%20DAC's%20%22current%20sources%22%3A%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%3E48.1.4.%26nbsp%3BTo%20initialize%20the%20DAC%20module%3A%3CBR%20%2F%3E...%3C%2FP%3E%3CUL%3E%3CLI%3EEnable%20VREF%20module%20(PDRUNCFGCLR0%5BPDEN_VREF%5D%20%3D%201)%20in%20PMC%20register.%20DAC%20%3CSTRONG%3EPTAT%3C%2FSTRONG%3E%20and%20%3CSTRONG%3EZTC%20current%20sources%3C%2FSTRONG%3E%20comes%20from%20VREF%20module.%3C%2FLI%3E%3C%2FUL%3E%3CBR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3EThis%20%3CSTRONG%3Edoes%20not%20explicitly%20state%3C%2FSTRONG%3E%20to%20enable%20these%20current%20sources.%20Do%20I%20have%20to%20enable%20them%2C%20maybe%20both%20of%20them%3F%3C%2FP%3E%3CP%3EThis%20is%20a%20valid%20question%20as%20these%20current%20sources%20can%20be%20enabled%20separately%20in%26nbsp%3BGlobal%20Control%20register%20(GCR)%3A%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%3EBit%2021%20IREF_ZTC_EXT_SEL%3CBR%20%2F%3EExternal%20On-Chip%20ZTC%20%3CSTRONG%3ECurrent%20Reference%3C%2FSTRONG%3E%20Select%3CBR%20%2F%3ESelects%20the%20external%20ZTC%20current%20reference%2C%20which%20is%20from%20the%20VREF%20module.%20See%20the%20%3CSTRONG%3EChip-specific%20section%20for%20more%20information%3C%2FSTRONG%3E.%3CBR%20%2F%3E0%20-%20Not%20selected%3CBR%20%2F%3E1%20-%20Selected%3C%2FP%3E%3CP%3EBit%2020%20IREF_PTAT_EXT_SEL%3CBR%20%2F%3EExternal%20On-Chip%20PTAT%20%3CSTRONG%3ECurrent%20Reference%3C%2FSTRONG%3E%20Select%3CBR%20%2F%3ESelects%20the%20external%20PTAT%20current%20reference%2C%20which%20is%20from%20the%20VREF%20module.%20See%20the%20%3CSTRONG%3EChip-specific%20section%20for%20more%20information%3C%2FSTRONG%3E.%3CBR%20%2F%3E0%20-%20Not%20selected%3CBR%20%2F%3E1%20-%20Selected%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3E*rant*%20Here%2C%20the%20current%20source%20is%20called%20%22%3CSTRONG%3Ecurrent%20reference%3C%2FSTRONG%3E%22.%26nbsp%3BWhat%20has%20driven%20the%20author%20to%20suddenly%20change%20the%20terminology%3F%20This%20is%20a%20technical%20document.%20Choose%20your%20term%20and%20stick%20to%20it!%20*rant%20end*%3C%2FP%3E%3CP%3EFurther%2C%20the%20%3CSTRONG%3Echip-specific%3C%2FSTRONG%3E%20section%20does%20not%20contain%20more%20information%20on%20these%20current%20sources.%20Where%20is%20it%3F%3C%2FP%3E%3CP%3EWhat%20is%20the%20advantage%20%2F%20disadvantage%20of%20PTAT%20or%20ZTC%20current%20source%3F%20The%20product%20data%20sheet%20is%20silent%20about%20their%20characteristics.%3C%2FP%3E%3CP%3EPlease%20advise!%3CBR%20%2F%3EThanks.%3CBR%20%2F%3EDaniel%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1739492%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ELPC55xx%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPeripherals%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2159839%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC5536%3A%20on%20DAC%20current%20sources%20(ZTC%2C%20PTAT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2159839%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ERegarding%20enabling%20VREF%2C%20this%20issue%20has%20been%20fixed%20in%20MCUXpresso%20IDE%2025.6.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1740359%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC5536%3A%20on%20DAC%20current%20sources%20(ZTC%2C%20PTAT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1740359%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ENote%3A%20When%20configuring%20DAC%20using%20Peripherals%20Tool%2C%20it%20does%20not%20require%20VREF%20to%20be%20configured.%20I%20presume%20this%20is%20a%20bug.%20Instead%2C%20Peripherals%20Tool%20should%20show%20a%20warning%20%2F%20error%20message%20in%20the%20Problems%20window%20to%20this%20end.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1740230%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC5536%3A%20on%20DAC%20current%20sources%20(ZTC%2C%20PTAT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1740230%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F26034%22%20target%3D%22_blank%22%3E%40xiangjun_rong%3C%2FA%3E%26nbsp%3B%2C%20I%20agree%20completely.%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20slides.%20However%2C%20I%20did%20not%20find%20any%20information%20on%20ZTC%20or%20PTAT%20current%20sources.%3C%2FP%3E%3CP%3ECould%20you%20forward%20the%20question%20to%20a%20Systems%20Engineer%20who%20is%20concerned%20with%20DAC%3F%3C%2FP%3E%3CP%3EBest%20regards%2C%3CBR%20%2F%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1739941%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC5536%3A%20on%20DAC%20current%20sources%20(ZTC%2C%20PTAT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1739941%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EI%20have%20to%20say%20that%20the%20Reference%20manual%20of%20LPC553x%20is%20not%20good%2C%20there%20is%20not%20a%20clear%20description%20about%20the%20ZTC%20and%20PTAT%20current%20source%2C%20including%20the%20mechanism%2C%20application%2C%20the%20relationship%20with%20DAC...%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22xiangjun_rong_0-1697426015895.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22xiangjun_rong_0-1697426015895.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F245149i39587181C232B307%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22xiangjun_rong_0-1697426015895.png%22%20alt%3D%22xiangjun_rong_0-1697426015895.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20attach%20an%20training%20about%20the%20Vref%20and%20DAC%2C%20hope%20it%20can%20shed%20a%20light%20on%20the%20two%20modules.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EXiangJun%20Rong%3C%2FP%3E%3C%2FLINGO-BODY%3E