Search found 952 matches

by basicchip
Tue Jul 16, 2019 8:39 pm
Forum: Software issues
Topic: IAP calls in BASIC
Replies: 0
Views: 211

IAP calls in BASIC

IAP calls or In Application Programming, gives access to a number of ROM routines to write flash, enable low power modes, get device IDs and other operations. With the inline Assembly capability of BASIC, it is easy to make these calls. For the LPC1768 we needed access to getting the device ID, in o...
by basicchip
Wed Jun 19, 2019 7:15 pm
Forum: Software issues
Topic: ArmBASIC - contact debouncing
Replies: 2
Views: 336

Re: ArmBASIC - contact debouncing

We have moved away from the builtin ON type statements, as they are too limiting. In the blog and forum are now examples of multitasking that can easily handle button debounce. Another new example in the blog and forum shows an example of generating interrupts on a pin transition. For a debounce for...
by basicchip
Wed Jun 19, 2019 7:06 pm
Forum: Projects
Topic: A simple logic probe
Replies: 0
Views: 330

A simple logic probe

Generated by a customer need, a simple logic probe is a great aid in debugging. probe2.jpg This uses a GPIO to detect high or low on the pin, and using weak pull up/down to detect floating lines. And with a normal weak pullup to detect falling edge transitions to show pulsing signals. Here is the pr...
by basicchip
Sat Jun 15, 2019 12:45 am
Forum: Software issues
Topic: ArmBASIC - contact debouncing
Replies: 2
Views: 336

Re: ArmBASIC - contact debouncing

Rather than put everything in firmware (which would require updates all the time), it is better to build BASIC libraries to do that. Debounce time depends on the type of switch and it can vary a lot. In our pong example we basically check the button every 15 ms. https://www.coridium.us/forum/viewtop...
by basicchip
Wed Jun 12, 2019 7:56 pm
Forum: Serial Communication
Topic: ARMStamp RXD issue
Replies: 9
Views: 1074

Re: ARMStamp RXD issue

In the current release of firmware 8.40b, txfree is broken on the LPC11U37, the ARMstamp

If you really need this function, contact me and I will send a corrected firmware.
by basicchip
Wed Jun 12, 2019 3:40 pm
Forum: Serial Communication
Topic: ARMStamp RXD issue
Replies: 9
Views: 1074

Re: ARMStamp RXD issue

TXFREE works for me. EDIT -- on a newer firmware version. Not sure it is worth addressing BAUD(0)/BAUD(1) interaction on Stamp, as BAUD(0) would really never get used there. Here is my test code-- main: baud(1)=115200 free0i = txfree(0) free1i = txfree(1) TXD(0) = 0x41 TXD(0) = 0x42 TXD(0) = 0x43 TX...
by basicchip
Tue Jun 11, 2019 12:43 am
Forum: Serial Communication
Topic: ARMStamp RXD issue
Replies: 9
Views: 1074

Re: ARMStamp RXD issue

TXD(0) will output to the USB connector TXD(1) outputs to the onboard USART-SOUT pin ' RXD(1) inputs received data from SIN pin ' Both those expected, as while we have UART0, and the debug port which has always been RXD(0) and TXD(0) on all other parts. So what to do??? well we intentionally send T...
by basicchip
Sat Jun 08, 2019 8:05 pm
Forum: Serial Communication
Topic: ARMStamp RXD issue
Replies: 9
Views: 1074

Re: ARMStamp RXD issue

PS you should hook up GND as well as TXD and RXD lines
by basicchip
Sat Jun 08, 2019 6:46 pm
Forum: Serial Communication
Topic: ARMStamp RXD issue
Replies: 9
Views: 1074

Re: ARMStamp RXD issue

Any floating input can generate any kind of data -- not very surprising. And this working for me ' this assumes a connection between RXD(1), TXD(1) and some other serial device using TclTerm, TeraTerm... ' tested with a USB dongle and ARMstamp main: baud(1)=19200 for i=1 to 20 txd(1)=&H40 + i next c...
by basicchip
Sat Jun 08, 2019 6:07 pm
Forum: Serial Communication
Topic: ARMStamp RXD issue
Replies: 9
Views: 1074

Re: ARMStamp RXD issue

RXD1 and TXD1 use to be handled by a dedicated firmware routine that no longer exists, hence the error Yes the Help file should be fixed (a never ending process, but thanks) On the ARMstamp, the serial channel 0 is routed through the USB which is quite different than the serial hardware. Baudrates d...