Author Topic: Looking for an NXP ARM CM0 reference design  (Read 10255 times)

0 Members and 1 Guest are viewing this topic.

Online zapta

  • Super Contributor
  • ***
  • Posts: 6289
  • Country: 00
Re: Looking for an NXP ARM CM0 reference design
« Reply #25 on: September 04, 2014, 03:29:04 pm »
This link has detailed schematics, BOM and and code examples for minimalist NXP M0.

http://eewiki.net/display/microcontroller/Getting+Started+with+NXP's+LPC11XX+Cortex-M0+ARM+Microcontrollers
 

Offline SirNick

  • Frequent Contributor
  • **
  • Posts: 589
Re: Looking for an NXP ARM CM0 reference design
« Reply #26 on: September 04, 2014, 07:15:20 pm »
I just sent this to the fab -- it's my first ARM project, so I can't vouch for it yet.  But, if there are any glaring issues, maybe the guys here can rip it to shreds and we'll both benefit.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 28059
  • Country: nl
    • NCT Developments
Re: Looking for an NXP ARM CM0 reference design
« Reply #27 on: September 04, 2014, 08:03:02 pm »
Is the undervoltage reset generator IC really required?
I never use one with the Cortex Mx controllers from NXP. They have their internal power-on-reset circuitry.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Online zapta

  • Super Contributor
  • ***
  • Posts: 6289
  • Country: 00
Re: Looking for an NXP ARM CM0 reference design
« Reply #28 on: September 05, 2014, 03:18:51 am »
Is the undervoltage reset generator IC really required?
I never use one with the Cortex Mx controllers from NXP. They have their internal power-on-reset circuitry.

It's connected to the reset button. Is it possible to have a reset button with the internal power-on-reset?
 

Online zapta

  • Super Contributor
  • ***
  • Posts: 6289
  • Country: 00
Re: Looking for an NXP ARM CM0 reference design
« Reply #29 on: September 05, 2014, 03:25:32 am »
I am looking at the minimal LPC11U14 circuit in page 4 here (this is the target side of the LPC11U14 LPCExpresso board.

http://www.embeddedartists.com/sites/default/files/docs/schematics/LPCXpressoLPC11U14revA.pdf

What is the purpose of Q3?  The LPC11U35 Quick Start board has a similar arrangement which the manual describes as follows: " There is also a USB connect functionality to connect a 1.5Kohm resistor to the USB-DP signal. "

 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4195
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Looking for an NXP ARM CM0 reference design
« Reply #30 on: September 05, 2014, 06:17:41 am »
Q3 is USB soft connect. Which can "reset" the USB connection. To force re-enumeration by the host.
The bootloader uses it to signal it's done using the USB-MSC or USB-DFU class to the connected host.
 

Online zapta

  • Super Contributor
  • ***
  • Posts: 6289
  • Country: 00
Re: Looking for an NXP ARM CM0 reference design
« Reply #31 on: September 05, 2014, 06:35:33 am »
Q3 is USB soft connect. Which can "reset" the USB connection. To force re-enumeration by the host.
The bootloader uses it to signal it's done using the USB-MSC or USB-DFU class to the connected host.

Thanks Jeroen3. Can I achieve the same effect by manually reconnecting the USB when the bootloader is done?

(trying to minimize the circuit).
 

Offline SirNick

  • Frequent Contributor
  • **
  • Posts: 589
Re: Looking for an NXP ARM CM0 reference design
« Reply #32 on: September 06, 2014, 12:18:34 am »
Yes, technically.  It's not primarily a reset signal, per-se.... It's how the USB host knows there's a device on the other end.  By turning on the transistor, you pull the line (either D+ or D- depending on the device speed you're advertising) to 3v3.  It goes through a resistor (pull-up) because the data line still needs to serve as part of the differential pair.

If you need to reset the bus, you can drop the pull-up, signalling a device disconnect, and then pull it high again to re-enumerate.  You could use a resistor to 3v3 alone... however.... your MCU is not likely to be fully booted before the host starts interrogating your device, so you may end up with "device malfunction" errors without a means to delay presence detect until the code is ready to participate on the bus.
« Last Edit: September 06, 2014, 12:22:07 am by SirNick »
 

Online zapta

  • Super Contributor
  • ***
  • Posts: 6289
  • Country: 00
Re: Looking for an NXP ARM CM0 reference design
« Reply #33 on: September 06, 2014, 05:15:22 am »
Yes, technically.  It's not primarily a reset signal, per-se.... It's how the USB host knows there's a device on the other end.  By turning on the transistor, you pull the line (either D+ or D- depending on the device speed you're advertising) to 3v3.  It goes through a resistor (pull-up) because the data line still needs to serve as part of the differential pair.

Thanks for the explanation. I will hook a scope and will look at the timing.

How come this functionality, which is part of the USB protocol, not implemented inside the MCU? After all it does have USB controller.
 

Online zapta

  • Super Contributor
  • ***
  • Posts: 6289
  • Country: 00
Re: Looking for an NXP ARM CM0 reference design
« Reply #34 on: September 06, 2014, 06:40:13 pm »
Surprisingly, it's very hard to find online. Either no one uses the board, or they are good at keeping it from being public (I don't know why they would).

It's very basic.
 - USB line protection & plug in detection.
 - 3V3 LDO
 - Undervoltage reset generator IC
 - SWD header
 - Switches reset & for selecting USB/UART bootloader
 - Some LEDS

If you really want the schematic, PM me and I can send it to you. Don't want to get Dave in trouble by posting it here.

Got the board today and like it. It's small and minimal, similar to the Arduino Mini Pro on which I used previously as a reference design. Hooked it to a computer and saw the bootloader USB file system with the binary file (great for firmware update by end users).  Will start programming it today (I already have the LPC Link and got this cable from digikey SAM8218-ND). Life is good.
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4195
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Looking for an NXP ARM CM0 reference design
« Reply #35 on: September 07, 2014, 12:47:28 pm »
How come this functionality, which is part of the USB protocol, not implemented inside the MCU? After all it does have USB controller.
Because it takes time to boot up the USB controller.

An small article on this pin:
http://learnembedded.blogspot.nl/2009/11/embedded-artists-lpc-2148-usb.html
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf