I/O's supplied by LCDA have no power

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

Hi all,

I'm using an ATSAM4LC2A on a board and made a small program that simply toggles PA20, outputting a square wave. The MCU programs fine but I get no square wave on PA20. However, if I place a pullup resistor, I then get a square wave. It's as if that pin is only pulling down.

Then, if I do the same with PA05, it works fine with no pullup resistor. I checked, and PA05 is supplied by VDDANA, while PA20 is supplied by LCDA. I tried the same on PA19 and PA18, which are also supplied by LCDA, and same result.

I am indeed applying 3.3V to VLCDIN. I even tried to enable the LCD controller on its CR register to see if LCDA was dependent on that, but no result.

Is there something I'm missing here to get power to those I/O pins?

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

UPDATE:

Problem is solved. I'll leave the solution here for the record:

The ATSAM4L datasheet says on page 47:

"When LCD feature is not used, VLCDIN must be always powered (1.8-3.6V). VLCD, CAPH, CAPL, BIASH, BIASL can be left unconnected in this case."

That's wrong. If the LCD feature is not used, you must power VLCD with VDDIN in order to use anything on a pin that has LCDA as the supply. Simply powering VLCDIN will not power those pins.