Search found 210 matches

by danlee58
Thu Dec 03, 2015 7:32 pm
Forum: Kitchen sink
Topic: Measure Pulse Width
Replies: 14
Views: 34002

Re: Measure Pulse Width

I get an error when my interrupt file compiles. The error relates to the IN1(19) instruction. I need this to determine if the signal is High or Low.
by danlee58
Thu Dec 03, 2015 3:45 pm
Forum: Kitchen sink
Topic: Measure Pulse Width
Replies: 14
Views: 34002

Re: Measure Pulse Width

I'll use T1_Cap0 set to 0x07, and poll P1.19, since I have the signal jumpered to that pin, to determine the level of the signal.
by danlee58
Thu Dec 03, 2015 3:06 am
Forum: Kitchen sink
Topic: Measure Pulse Width
Replies: 14
Views: 34002

Re: Measure Pulse Width

Can I set T1_CCR = 0X35? It should interrupt on both edges. I only need to know which edge caused the interrupt. I could poll the pin, or examine a register(?).
by danlee58
Thu Dec 03, 2015 1:29 am
Forum: Kitchen sink
Topic: Measure Pulse Width
Replies: 14
Views: 34002

Re: Measure Pulse Width

The pulse is between 1msec & 15msec duration. I'll try to change the capture edge of the interrupt.
by danlee58
Tue Dec 01, 2015 4:15 pm
Forum: Kitchen sink
Topic: Measure Pulse Width
Replies: 14
Views: 34002

Measure Pulse Width

I am using a SuperPro to measure the pulse width of a signal. I use Timer1 to measure the time between T1.CR1 and T1.CR0. The program is written in C. T1_CCR = 0x15; The signal is connected to pin P1.18. Do I have to jumper it to P1.19? T1 Capture 1 records the leading edge of the pulse ( falling ed...
by danlee58
Sun Nov 29, 2015 3:17 am
Forum: Software issues
Topic: Conflicts of IOs and serial output
Replies: 5
Views: 11110

Re: Printf Doesn't Write To Terrminal

I found that problem also. I had set PCB_PINSEL0 for Match 3.0 on P0.10, then changed P0.10 to an OUTPUT pin, but didn't delete the Match 3.0 selection. The output from P0.10 is a function of P0.29 input. P0.29 input is OK, the problem was P0.10 output.
by danlee58
Sat Nov 28, 2015 6:57 pm
Forum: Software issues
Topic: Conflicts of IOs and serial output
Replies: 5
Views: 11110

Re: Printf Doesn't Write To Terrminal

Now that printf is working, I have found that I can't read P0.29. I defined both P0.29 & P0.30 as Inputs.

PCB_PINSEL1 = 0X03240000;
by danlee58
Sat Nov 28, 2015 4:30 pm
Forum: Software issues
Topic: Conflicts of IOs and serial output
Replies: 5
Views: 11110

Re: Printf Doesn't Write To Terrminal

I found my problem. I overwrote PCB_PINSEL0 and cleared the wrong location.
by danlee58
Sat Nov 28, 2015 3:08 pm
Forum: Software issues
Topic: Conflicts of IOs and serial output
Replies: 5
Views: 11110

Conflicts of IOs and serial output

I am debugging a C program for a SuperPro. I put in a printf statement to print the value of a variable to the terminal, so I can monitor the program. Printf doesn't print anything to the terminal from that program. If I load an older program, with the same print statement, I see the value on the te...
by danlee58
Tue Nov 24, 2015 7:55 pm
Forum: Power Issues
Topic: Diode D3 Blown?
Replies: 2
Views: 14431

Re: Diode D3 Blown?

I jumpered around D3. The board is OK now. I don't need to use another power source, so this will work.