Please tell me this is the answer

Discussion of issues related to writing ZBasic applications for targets other than ZX devices, i.e. generic targets.
meenbombs
Posts: 35
Joined: 20 November 2008, 15:54 PM

Post by meenbombs »

There seems to be a good bit of experience here with both systems. A good bit of my frustration with PBP and PICs in general is having to go through all the registers and turn "this" on and "that" off just to use a pin as an input or an output. I appreciate the help on the USART but at the end of the day Zbasic does the serial comms in the background with one command and no plate juggling. Are these same type of headaches in the Zbasic generic target system or is nostalgia just making me recall a much easier system to use than PBP?
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

meenbombs wrote: Are these same type of headaches in the Zbasic generic target system or is nostalgia just making me recall a much easier system to use than PBP?
As I indicated earlier, using ZBasic targetting a generic AVR is nearly as simple as doing so for a ZX device. The difference is that you have to provide at least two configuration parameters (the clock frequency and device package). Without those, the application won't compile for the generic target. If you want the application to use the RTC, you must also provide some configuration parameters for it, too. The same is true if you want to use the software UARTs. In contrast, all of those configuration parameters are pre-determined for ZX devices.

If you found ZBasic easy to use for ZX devices, it will be just as easy to use for a generic target device once the necessary configuration parameters are set. The IDE has a dialog that assists with determining the configuration parameters - select the "Target Options..." from the Options menu (only enabled if a generic target device is selected).
- Don Kinzer
meenbombs
Posts: 35
Joined: 20 November 2008, 15:54 PM

Post by meenbombs »

Great. I will give it a run when things lighten up next month. Thanks everybody for the advice.
Post Reply