Mega16 and LCD44780 connected to PORTC

not work

NickBahtin
 
Avatar
 
Betreff:

Mega16 and LCD44780 connected to PORTC

 · 
Gepostet: 15.07.2011 - 18:10 Uhr  ·  #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
Geschlecht:
Herkunft: Frankfurt Main / Germany
Beiträge: 1697
Dabei seit: 02 / 2003
Betreff:

Re: Mega16 and LCD44780 connected to PORTC

 · 
Gepostet: 15.07.2011 - 18:30 Uhr  ·  #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
 
Betreff:

Re: Mega16 and LCD44780 connected to PORTC

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

Working!!!

 · 
Gepostet: 25.07.2011 - 16:01 Uhr  ·  #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
Geschlecht:
Herkunft: Frankfurt Main / Germany
Beiträge: 1697
Dabei seit: 02 / 2003
Betreff:

Re: Mega16 and LCD44780 connected to PORTC

 · 
Gepostet: 25.07.2011 - 17:05 Uhr  ·  #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
Gewählte Zitate für Mehrfachzitierung:   0

Registrierte in diesem Topic

Aktuell kein registrierter in diesem Bereich

Die Statistik zeigt, wer in den letzten 5 Minuten online war. Erneuerung alle 90 Sekunden.
MySQL Queries: 15 · Cache Hits: 14   85   99 · Page-Gen-Time: 0.0316s · Speichernutzung: 2 MB · GZIP: ein · Viewport: SMXL-HiDPI