ATSAM4E8EA-AU IO PD19 question

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Sir,

 

We have a new design which us PD19 as our light control io, but we confige io19 output high but the light is not on, we measure the io19, it's output low.

So we checked SAM4E datasheet and found PD19 is used for nand flash, how should we do if we want use PD19 as gpio mode?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

peter.wang@raise3d.com wrote:
we checked SAM4E datasheet and found PD19 is (sic) used for nand flash

You mean this:

 

 

http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-11157-32-bit-Cortex-M4-Microcontroller-SAM4E16-SAM4E8_Datasheet.pdf

 

 

So if you don't want PD19 to function as NCS3 - don't configure it that way.

 

Other pins can be configured as NCS3 if you need that

 

 

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Tue. Oct 20, 2020 - 08:27 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry, maybe you misunderstood what i said, i want configure PD19 as normal gpio mode not NCS3, how could i do?  according the spec, PD19 only can be configured periperal which used as NCS3.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

peter.wang@raise3d.com wrote:
PD19 only can be configured periperal which used as NCS3.

That means it has only one Altenate Function; so you have two options:

  1. use as GPIO;
  2. use as NCS3.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Got you ,we will try, thanks for your support.

Last Edited: Tue. Oct 20, 2020 - 10:13 AM