Forum Index
Migrating ZX24 projects to ZX44 projects

 
Author Message
mdown



Joined: 03 Feb 2006
Location: Dallas, Texas

Posted: 01 August 2006, 21:18 PM    Post subject: Migrating ZX24 projects to ZX44 projects

I am having trouble finding a zx44 pin correlation to a zx24. Up until now our application has been written for a zx24 and we are in the process of designing a new board for the zx44. A pin to pin comparison with the valid pin names for the compiler would be very handy. I found most of the pin data in the schematics. However I am not sure how say pin 32/PA5/ADC5 maps to the zbasic language. Is getadc(32) correct? And what pins are avalable as gpios vs i2c ect.

Thanks,

Mike
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Location: Portland, OR

Posted: 01 August 2006, 23:18 PM    Post subject:

The pin numbers for the ZX-40 and ZX-44 are those of the package itself. One way to neatly handle the differences is to use a port/pin constant like A.5. The compiler maps this to the corresponding pin number based on the specified target CPU. For example, the compiler converts A.5 to the value 13 if you compile for the ZX-24. If compiling for the ZX-44, the compiler converts A.5 to the value 32.
Back to top
mdown



Joined: 03 Feb 2006
Location: Dallas, Texas

Posted: 01 August 2006, 23:30 PM    Post subject: Other pins that are confusing

On the zx24 schematic pins 41 & 26 are tied creating zx24 pin 5 why was this done and do I need do the same? There are several like this.

-Mike
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Location: Portland, OR

Posted: 07 September 2006, 0:32 AM    Post subject:

Sorry for the tardy reply, I overlooked this post somehow.

Because of the limited number of pins available on the ZX-24 some of the functions are doubled up on some pins. With the ZX-40 and ZX-44 those connections are unnecessary.
Back to top
Display posts from previous:   
Page 1 of 1

 



ZBasic Microcontrollers Home
All content Copyright © 2005, 2006, 2007, 2008 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group