Port Configuration Problem

Discussion about the ZBasic language including the System Library. If you're not sure where to post your message, do it here. However, do not make test posts here; that's the purpose of the Sandbox.
Post Reply
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Port Configuration Problem

Post by dkinzer »

The compiler versions 2.4.1 and 2.4.2 have a problem where initialization code does not get generated for 'Option Pin' and 'Option Port' directives related to ports B, C, and D. This only affects code generated for ZX target devices based on the mega32, mega644 and mega644P processors, whether VM or native mode.

We will be posting a new version of the compiler that corrects this problem. In the mean time, the work around is to add PutPin() calls early in your Main() subroutine to perform the desired configuration.
- Don Kinzer
Post Reply