Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - 24 ~ 27 Ic Pins Failure Atmega32A & 16L

(you are viewing a thread; or go back to list of threads)

24 ~ 27 Ic Pins Failure Atmega32A & 16L (by MFQ)
DEAR SIR


ATMEGA32A
ATMEGA32 16PU
ATMEGA32A PU

ATMEGA16L

SAME LOGIC TEST OF 22,23,28 & 29 PINS SAME PROG WORKING OK
SAME LOGIC TEST OF 24,25,26 & 27 PINS SAME PROG NOT WORKING

WHATS PROBLEM IS THERE ?

TEST BY OSCILLOSCOPE & LOGIC PROBE
Sun May 29 2016, 05:56:16, download attachment PIN TEST.ld
(no subject) (by MFQ)
DEAR MPG

DO YOU FACE THIS PROBLEM ABOUT THAT (ATTACH FILE)
PLEASE IF YOU HAVE ANY SOLUTION ABOUT IT INFORM. THANKS
Sun May 29 2016, 07:42:02
(no subject) (by MGP)
Ihor is the man you need, not me.
I'm a PIC-man and can not change the source code of LDmicro.
Sun May 29 2016, 11:22:20
(no subject) (by Ihor Nehrutsa)
I recommend using pintest.ld with different frequency on the output pins.
Mon May 30 2016, 10:46:11, download attachment pintest.JPG
(no subject) (by Ihor Nehrutsa)
This will identify the outputs.
Mon May 30 2016, 10:49:04, download attachment pintest.ld
(no subject) (by Ihor Nehrutsa)
To MFQ:
You are trying to use 44 leads/pads packages of ATmega32?
Mon May 30 2016, 10:52:01, download attachment ATmega32_page332.jpg
(no subject) (by Ihor Nehrutsa)
40-PDIP package has a different numbering sequence of chip pins from 44-TQFP/MLF packages.

For example
in 40-PDIP 26 pin is PC3,
in 44-TQFP/MLF 26 pin is PC7.

LDmicro now support "Atmel AVR ATmega32 40-PDIP".
Mon May 30 2016, 11:03:28, download attachment ATmega32_page02.jpg
(no subject) (by Ihor Nehrutsa)
I compile pintest.ld, got a pintest.hex and pintest.asm.

I developed scheme about ATMEGA32 with pintest.hex in Proteus.
Mon May 30 2016, 11:15:53, download attachment pintest_ATmega32_3.JPG
(no subject) (by MGP)
Ihor, I found a bug in the editor(compatibility)
Your program PINTEST.LD looks like this in the V2.3, see the printscreen.
Mon May 30 2016, 11:28:44, download attachment Snap74.jpg
(no subject) (by Ihor Nehrutsa)
You can see more details in zip archive. All files attached above are in ZIP archive.

Please pay attention to excerpts from Atmel documents:
ATmega32_page*.jpg
ATmega32A_page*.jpg
or use original www.atmel.com datasheet pdfs.

I change LPC cycle time to 1ms and add CTC counters.
PINTEST\pintest.ld
PINTEST\pintest.hex
PINTEST\pintest.asm

Proteus scheme in PINTEST\pintest\PROTEUS\pintest_ATmega32.DSN. Work in Poteus 7.10.

pintest_ATmega32_1.JPG
pintest_ATmega32_2.JPG
pintest_ATmega32_3.JPG
show different horizontal scan of Y signals on oscilloscope.

About asm you can read
https://github.com/LDmicro/LDm...R-Studio-or-PIC-MPLAB-software
Mon May 30 2016, 11:46:30, download attachment PINTEST.ZIP
(no subject) (by Ihor Nehrutsa)
to MGP:
It is not a bug. It is a new feature of CTC. CTC moved from the end of line to leaf of a rung. After the CTC counter overflow, CTC generate OSR at its output. This feature is back compatible with old LD files.

In this thread
http://www.cq.cx/ladder-forum.pl?action=viewthread&parent=4832
I offered
"CTC need upgrading!"
and
Jonathan Westhues
says
"That seems like a good change. It should be possible to make it as backwards-compatible for the file format always, and forwards-compatible for all programs not using the new feature; so there should be no problem with existing programs."
Mon May 30 2016, 12:12:28, download attachment swatch0.zip
(no subject) (by Ihor Nehrutsa)
To MFQ and all:

I can add "Atmel AVR ATmega32 44-Pin packages" into LDmicro.
It will cost $10.
I can add "Atmel AVR ATmega328 32-Pin packages"
It will cost $10.

As I wrote earlier:
"
I appreciate his work at $ 20 / hour.
...
Also, the addition to the list of processors AVR with a change in package type (eg ATmega8 PDIP -> ATmega8 TQFP) I set price at $10 (0.5 hour).
"

On the question of payment, please contact [email protected].
Mon May 30 2016, 12:31:46
(no subject) (by MGP)
Sorry, I forgot you had already written this.
Mon May 30 2016, 12:47:30
(no subject) (by MFQ)
Dear thanks .


trying to solve my problem but there is no problem.

problem in programming.exe

too much different attempt on both ic atmega32 and 16 both ic status 24 25 26 27 not work but 22 23 28 29 work properly.

there is no use 44 pin pakage

PDIP 40 pin use
Mon May 30 2016, 17:16:10, download attachment mypic.JPG
(no subject) (by MFQ)

dear

use different ic use and programming but all ic shown same status
Mon May 30 2016, 17:18:49, download attachment Atmega32 16.JPG
(no subject) (by MFQ)
SEE IC PACKAGE
Mon May 30 2016, 17:34:15, download attachment IMG_20160531_015635.jpg
(no subject) (by MFQ)
NEXT DAY TO TEST YOUR RECOMMENDED PROG. AT HARDWARE THEN INFORM YOU THAT IS WORK OR NOT

THANKS
Mon May 30 2016, 17:40:32
(no subject) (by MFQ)
DEAR THIS PROG ALSO TESTED BUT NOT SUCCESS
Mon May 30 2016, 18:03:23, download attachment TESTED.ld
(no subject) (by Ihor Nehrutsa)
to MFQ:
Please send you pintest.hex and tested.hex
Tue May 31 2016, 03:36:31
(no subject) (by Ihor Nehrutsa)
to MFQ:
Are you using JTAG interface? This is a fragment of ATmega32 datasheet:
...
Port C is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The
Port C output buffers have symmetrical drive characteristics with both high sink and source
capability. As inputs, Port C pins that are externally pulled low will source current if the pull-up
resistors are activated. The Port C pins are tri-stated when a reset condition becomes active,
even if the clock is not running. If the JTAG interface is enabled, the pull-up resistors on pins
PC5(TDI), PC3(TMS) and PC2(TCK) will be activated even if a reset occurs.
The TD0 pin is tri-stated unless TAP states that shift out data are entered.
Port C also serves the functions of the JTAG interface and other special features of the
ATmega32 as listed on page 60.
...
Tue May 31 2016, 03:46:22
(no subject) (by MFQ)
Dear Ihor Nehrutsa

Good Job

Thanks to solve this problem ( you Done it )

Best of the Best Try about it (thanks a lot Ihor Nehrutsa)


from MFQ
Tue May 31 2016, 17:28:25
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):