Mega16 and LCD44780 connected to PORTC

not work

NickBahtin
 
Avatar
 
Subject:

Mega16 and LCD44780 connected to PORTC

 · 
Posted: 15.07.2011 - 18:10  ·  #1
Hi? expert's! Connect the display according to the scheme Mega163sch, only with port C -
On port "A" works - at the port "C" will not work! Help me Please!
Gunter
Administrator
Avatar
Gender:
Location: Frankfurt Main / Germany
Posts: 1697
Registered: 02 / 2003
Subject:

Re: Mega16 and LCD44780 connected to PORTC

 · 
Posted: 15.07.2011 - 18:30  ·  #2
Hi Nick,

Port C uses some of its pins for JTAG signaling and you have
JTAG still enabled. So these pins are not available for general IO.
Disable the JTAGEN fuse (set to binary 1) or use "Disable_JTAGPORT".

Gunter
NickBahtin
 
Avatar
 
Subject:

Re: Mega16 and LCD44780 connected to PORTC

 · 
Posted: 18.07.2011 - 05:58  ·  #3
Thanks for the answer! TONIGHT I will check up and I will write the answer
NickBahtin
 
Avatar
 
Subject:

Working!!!

 · 
Posted: 25.07.2011 - 16:01  ·  #4
Thanks for your help. Earned only true option 1 (Disable the JTAGEN)
2. Disable_JTAGPORT revived the display - but it was broken. Most likely not true initialize display
Gunter
Administrator
Avatar
Gender:
Location: Frankfurt Main / Germany
Posts: 1697
Registered: 02 / 2003
Subject:

Re: Mega16 and LCD44780 connected to PORTC

 · 
Posted: 25.07.2011 - 17:05  ·  #5
Hi,
to use Disable_JTAGPORT you should place this statement in a SYSTEM_INIT procedure.
So the JTAG is disabled before any initalization takes place.
Note that you must not call this procedure from inside your application!

Gunter
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   85   99 · Page-Gen-Time: 0.022077s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI