Search found 49 matches

by TodWulff
Tue Nov 27, 2018 5:36 am
Forum: Software issues
Topic: TIMER writing // LPC824
Replies: 1
Views: 544

Re: TIMER writing // LPC824

Yep, I am too seeing this behaviour on the 824 dim times(10) as integer #define timer_reset_val 0x00004650 temp=timer timer=timer_reset_val temp1=timer waitmicro(10) temp2=timer x=1 do times(x)=timer x+=1 until x=10 'printing time not part of the issue print "init: ";temp Print "Attempted to reset t...
by TodWulff
Tue Nov 27, 2018 5:03 am
Forum: Software issues
Topic: ConBasic- Hello World
Replies: 9
Views: 3147

Re: ConBasic- Hello World

Can someone please explain what C on Basic is?

Based on the title, it sounds like a means for ARMbasic to compile and run some C source on Basic.

Is this correct?
by TodWulff
Sat Nov 24, 2018 9:33 am
Forum: Other Hardware interfaces
Topic: MRT (Multi-Rate Timer) [54102 & 824]
Replies: 0
Views: 568

MRT (Multi-Rate Timer) [54102 & 824]

Following are two examples of using the MRT peripheral on different Coridium Targets - the 54102 and the LPC-800DIP (OEM 824 board). The samples are pretty similar. Coridium's LPC8xx.bas library was missing a #def for the MRT GFlag register (which used to clear the MRT Interrupt(s)), and had an erro...
by TodWulff
Fri Nov 23, 2018 9:06 am
Forum: Software issues
Topic: Watchdog timer
Replies: 2
Views: 2474

Re: Watchdog timer [54102 - Interrupt]

The following is tested w/ BT 6.1, PC Compiler 9.37m, and 8.36h on the 54102: ' initial run last for ~6-10 seconds, wdt will starve, firing the isr & then the handler w/ a console emission ' second and subsequent periods should be ~3-5s between interrupts/console emissions #define CORE_M4 ' needed f...
by TodWulff
Tue Nov 20, 2018 12:20 am
Forum: Software issues
Topic: Watchdog timer
Replies: 2
Views: 2474

Re: Watchdog timer [54102 - Reset]

For the 54102, there are a couple of additional steps needed: Clear the PDRUNCFG bit for the WDT Oscillator, so it becomes powered Enable the WDT Clock in the AHBCLKCTRL register <...then...> Set the WDT Time Constant register (a 4 cycle divisor on a 500KHz clock source | 625000 (0x98968) is 5 sec) ...
by TodWulff
Mon Nov 19, 2018 12:31 am
Forum: Software issues
Topic: First Run Only Trigger?
Replies: 3
Views: 870

First Run Only Trigger?

Looking to see if there is a cross-target way, in an AB context, for user code to know if it is being run for the first time after it has been flashed, or after a power on/reset event. I know that on the 824, there is some RAM that is wiped during power cycles, Deep Power Down, or a BOR, but is reta...
by TodWulff
Sun Nov 18, 2018 10:03 am
Forum: Software issues
Topic: Arrays of strings
Replies: 3
Views: 790

Re: Arrays of strings

Ok, this works. I dislike it somewhat, as I think that there are likely better ways to do it. But, as a proof of concept, it passes muster. Feel free to refactor and optimize. defglobals: ' these are the global variables dim task_state_verbose_ptr (4) as integer return sub init() ' init the array of...
by TodWulff
Sun Nov 18, 2018 2:30 am
Forum: Software issues
Topic: Arrays of strings
Replies: 3
Views: 790

Re: Arrays of strings

An interesting set of approaches you've posited. ... I am all about being Alice.

Going to have to take a peek at that tonight/tomorrow.

Thank you, kind sir.

-t
by TodWulff
Fri Nov 16, 2018 1:20 am
Forum: Software issues
Topic: Arrays of strings
Replies: 3
Views: 790

Arrays of strings

I am trying to implement a means to gain some verbosity in my debug code. I have a integer variable to capture a task state - 0 = not started, 1 = idle, 2 = active, ... I'd like to do something such as this: const task_state_verbose(16) = { "Not Started", "Idle", "Active", "Paused" } ... for i = 0 t...
by TodWulff
Fri Oct 12, 2018 6:19 am
Forum: Projects
Topic: Linux 2018
Replies: 4
Views: 2539

Re: Linux 2018

... not as weird as Forth. LOL! I fully concur with that. RPN and all of the stack jacking made muh gray matter ooze out of my ear canals. It is some pretty goofy stuffs. However, I did go on a small Forth binge back many moons ago, when I had a Sony Clie' as one of my first smart portable devices,...