Search found 210 matches

by danlee58
Sun Dec 20, 2015 3:52 pm
Forum: Other Hardware interfaces
Topic: Remote Programming I/F
Replies: 4
Views: 20215

Remote Programming I/F

I have built several boxes using a Coridium Pro Plus or Super Pro board. A point of difficulty has always been when I need to reprogram the board. It's not too bad, if I am in the development stage, but once the unit is in situ, it means nearly complete disassembly. I would like to add a connector t...
by danlee58
Fri Dec 18, 2015 11:42 am
Forum: Software issues
Topic: #include math.h on LPC175x
Replies: 3
Views: 10192

Re: #include math.h on LPC175x

The subtraction is OK, it must be something else in the program causing a problem.
by danlee58
Fri Dec 18, 2015 11:32 am
Forum: Software issues
Topic: #include math.h on LPC175x
Replies: 3
Views: 10192

Re: #include math.h on LPC175x

It is in the compiler options, normally it is one of the defaults. Does the Csample compile with -DUSE_FLOAT set as a User compile option? Yes, with a couple of Warnings, this is one of those: C:/PROGRA~2/Tools/CMSIS/Csample.c:24:0: warning: "USE_FLOAT" redefined [enabled by default] <command-line>...
by danlee58
Thu Dec 17, 2015 7:56 pm
Forum: Software issues
Topic: #include math.h on LPC175x
Replies: 3
Views: 10192

#include math.h on LPC175x

I am having a problem with a subtraction of 20 bit numbers. I'm wondering if I have floating point. I don't see math.h in the list of included components. I have the following statement in my header. #ifdef USE_FLOAT // for the LPC175x you must also add to USERargs "-mfpu=vfp" #include <math.h> #end...
by danlee58
Wed Dec 16, 2015 4:30 pm
Forum: Kitchen sink
Topic: While Loop Ends Unexpectedly.
Replies: 15
Views: 37997

Re: While Loop Ends Unexpectedly.

I removed the redundant instruction. It still looks good. Now I have to integrate it into the target program, as this was a test program just to debug this problem. The interrupt routine shouldn't be changed by that.
by danlee58
Wed Dec 16, 2015 4:20 pm
Forum: Kitchen sink
Topic: While Loop Ends Unexpectedly.
Replies: 15
Views: 37997

Re: While Loop Ends Unexpectedly.

I changed T1_IR = 0x10 to T1_IR = 0x20, and reinserted VICIntEnable0 = 0x4. Now it all seems to be working. I am using Capture Channel 1, not Capture Channel 0.

I'll try to remove some of the redundant instructions.
by danlee58
Wed Dec 16, 2015 4:03 pm
Forum: Kitchen sink
Topic: While Loop Ends Unexpectedly.
Replies: 15
Views: 37997

Re: While Loop Ends Unexpectedly.

I commented out VICIntEnable0 = 0x4 in the interrupt routine. The main program runs, but the interrupt is sporadic.
by danlee58
Wed Dec 16, 2015 3:16 pm
Forum: Kitchen sink
Topic: While Loop Ends Unexpectedly.
Replies: 15
Views: 37997

Re: While Loop Ends Unexpectedly.

My test setup produces an output from a Coridium SuperPro board. It's pulling down a 1K load connected to 5 volts supplied by the ProPlus board under test. The 5.0 Volts is from the USB dongle. I have P1.18 connected to a channel on my 100Mhz logic analyzer. I can see some steps in the falling edge,...
by danlee58
Wed Dec 16, 2015 12:10 pm
Forum: Kitchen sink
Topic: While Loop Ends Unexpectedly.
Replies: 15
Views: 37997

Re: While Loop Ends Unexpectedly.

Do I need to make T1_CCR = 0x30 to interrupt on the falling edge, then in the interrupt routine reset T1_CCR = 0x28, if P1.18 = 0, and T1_CCR = 0x30 if P1.18 = 1?
by danlee58
Wed Dec 16, 2015 2:42 am
Forum: Kitchen sink
Topic: While Loop Ends Unexpectedly.
Replies: 15
Views: 37997

Re: While Loop Ends Unexpectedly.

I did a screen capture, now I need a way to upload the Logic Analyzer screen.