Minimum for Option ComChannels

Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
Post Reply
wwwoholic
Posts: 53
Joined: 23 December 2010, 20:58 PM

Minimum for Option ComChannels

Post by wwwoholic »

According to documentation this option "can be used to reduce the amount of RAM needed by an application by specifying a lower number of software UART channels to be supported".

One of the reasons for choosing ZX24x for this application was to utilize only hardware channels. Yet when I try to set ComChannels to 0 I get compiler error:

"number of Comm channels must be in the range 1-4"
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Minimum for Option ComChannels

Post by dkinzer »

wwwoholic wrote:[W]hen I try to set ComChannels to 0 I get compiler error:
Perhaps the issue could be explained more clearly. If you don't use the software UART channels, there is no contribution to the Flash or RAM use at all. The only time you might want to use the option to specify the number of software UART channels in order to reduce RAM use is when you use at least one channel.
- Don Kinzer
Post Reply