Search found 57 matches

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

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: 6370

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: 6370

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: 5757

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: 4876

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: 4876

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: 4876

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: 7760

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,...
by TodWulff
Fri Oct 12, 2018 6:01 am
Forum: Kitchen sink
Topic: SizeOf built-in function?
Replies: 3
Views: 6991

Re: SizeOf built-in function?

And yes, the 2nd piece I implement will be the Marine Corps Hymn...

Ooh Rah!

:D
by TodWulff
Fri Oct 12, 2018 5:52 am
Forum: Kitchen sink
Topic: SizeOf built-in function?
Replies: 3
Views: 6991

SizeOf built-in function?

Is there a built-in function that returns the number of elements in a previously dim'd int, single, byte (or other sub-word variants) arrays? Yeah, I know I can physically count the elements in the def statements and use that with a #def, but if I neglect to do so, or forget to update the #def that ...