Hardware interface

Questions about the BASICtools and MakeItC
Post Reply
Posts: 985
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA

Hardware interface

Post by basicchip » Tue Dec 17, 2013 9:29 pm

>from the help line

>The ARM documentation is quite detailed. But how do we get BASIC or C to control the chip? Mostly we care about the timer functions.

>Does C execute as fast as BASIC? The programmers here are rusty at BASIC.

C is usually about 10-20% faster than BASIC, but sometimes code with lots of calls can be faster in BASIC.

Yes the hardware functions have lots of features, but in many cases to do simple things only requires a few register writes, which in both C and BASIC is done by pointers. In BASIC we publish some simple examples that setup interrupts, or use TIMERs to do PWM in hardware.

Our BASIC firmware is actually a C program, and we publish the source portions of that that setup the hardware (in the MakeItC package). At one time we synced up with the software NXP publishes, at the time CMSIS compliance was the big thing. Now it's LPCopen, but it is a moving target, and other than cutting and pasting sections of their code we don't try to keep up with it. But it is a good reference for many peripherals www.lpcware.com

Post Reply