|
|
|
|
|
|
Joined Oct 2012
63 Posts
|
hi Bruce abbot
blink frequency of LED version 12f 617 near 1s., but sometimes I see LEDs blink very fast, I do not know the error is due design my circuit or for some other reason? why is capacitor 50p? I replace by 100n capacitor, result is pic does not receive the input signal
|
|
|
||
|
Joined Nov 2012
106 Posts
|
Quote:
less efficient but works great, i have one on wildthumper pnp- of the same type as the npn at the high side of the h bridge it uses IC-4027 to drive the mosfet and IC-AND gate for PWM speed ctrl |
|
|
||
|
|
|||
|
|
Quote:
Quote:
|
||
|
|||
|
|
||
|
Joined Oct 2012
63 Posts
|
Quote:
you can show me the command line makes the LED flashes quickly. I only see the command makes the LED flashes slowly BadPulse: ifdef FAILSAFE movi16 MIDTHROTTLE,ServoCount ; set to neutral endif incf BadPulseCount movf BadPulseCount,w sublw 7 skpnc ; toggle LED every 8 bad pulses goto bp_done clrf BadPulseCount ; reset count btfss GPIO,LedBit goto bp_LED_on bcf GPIO,LedBit ; Toggle Status LED goto bp_done bp_LED_on: bsf GPIO,LedBit bp_done: |
|
|
||
|
|
||
|
|
Quote:
![]() The rate at which the LED flashes is dependent on how long the code takes to measure the servo pulse. Normally that will be around 10 to 20mS (depending on the frame rate of your receiver), but the LED doesn't flash when there is a good signal. If no pulse is detected then the 'Measure' subroutine will time out after ~33mS, and the flash rate will be 8*33mS off, 8*33mS on, ie. about 2 flashes per second. This is the normal 'no signal' response. However, if you are using an AM or FM radio and the receiver picks up interference, then it may put out a lot of short pulses. The LED will then flash on and off 16 times slower than the average frequency of those pulses (which could be several kHz). This behavior is good because you can tell the difference between interference (fast flash) and no signal (slow flash). |
|
|
||
|
|
|
|
Joined Nov 2012
53 Posts
|
I have write a small program in version 12f617
create tone "beep" when the loss signal. create tone "beep beep beep" when the set is complete for neutral but I'm having difficulties in interrupt of PIC, pic do two jobs at once."Blinking leds and create melody " I'll post the asm file, hope people will help me |
|
|
|
|
||
|
Joined Oct 2012
63 Posts
|
Quote:
|
|
|
||
|
|
|
|
Joined Oct 2012
179 Posts
|
hello bruce abbot
I using the program winpic 800 ( jdm propramer ) to load the hex file for 12f675 ![]() during the loading of software appear notice of the alternative addresses for pic: select YES or NO. ? I do not understand, and it seems to affect the certification of the neutral position of the signal pulse I loaded the program for two pic 12f675. but a neutral position in two different places. |
|
|
|
|
||
|
|
Quote:
If you decide to change it manually then the following information may help:- REGISTER 2-7: OSCCAL — OSCILLATOR CALIBRATION REGISTER (ADDRESS: 90h) bit 7-2 CAL5:CAL0: 6-bit Signed Oscillator Calibration bits 111111 = Maximum frequency 100000 = Center frequency 000000 = Minimum frequency bit 1-0 Unimplemented: Read as '0' example:- ORG 0x3ff RETLW 0xfc ; osccal value = maximum frequency (b'11111100') |
|
|
||
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Discussion Ebay 320amp brushed esc and car starter | narxer | Power Systems | 7 | Aug 20, 2012 11:31 AM |
| Discussion Question about using a 10T brushed car esc in a boat, using twin 55T brushed motors | SARCFAN | Dock Talk | 5 | Jul 02, 2012 11:58 AM |
| Found --found/closed/thanks rcfanatic--Brushed r/c car ESC that can handle 11.1 lipo | fly_right | Cars - Cars and Parts (FS/W) | 6 | Apr 14, 2012 07:39 PM |
| Discussion Replacment brushed ESC for the NitroRCX drift car. | B dog | Electric Power Cars | 5 | Mar 06, 2012 08:20 PM |