Hi all,
Thanks for the helping hand and code. I used your code samples but it just didn't do the trick. My goal was to be able to have 2 low freqency PWM signals with a 90 degree phase shift.
...
Type: Posts; User: ultiblade; Keyword(s):
Hi all,
Thanks for the helping hand and code. I used your code samples but it just didn't do the trick. My goal was to be able to have 2 low freqency PWM signals with a 90 degree phase shift.
...
wohoo Darrel, Thanks !
Darrel,
Thanks for the DT-INTS modules, it's an awesome piece of work. It makes interrupt handling so much easier !
I found this topic because i got stuck using the DT-INTS-18 within code that...
You're so right ! I don't know how i missed this. Thanks !
A couple of day's ago i found a timer calculator, i just entered the frequency and the calculations were made. However, it seems that the...
I just had another idea. I need a base frequency of 120Hz. On a 8Mhz intosc, if i make the frequency 256 x 120Hz = 30720Hz and count 256 interrupts and then fire a pin i should have 120Hz, right ?
...
Hi All,
I'm kind of stuck at the moment.
I need a pwm signal with a low frequency. Darrel has made the awesome slow pwm module but i can't use because i need timer1 to do a continues pulse...
Strange thing is that on the tiny website there is sample code called tinybld18F2420_int8MHz_19200.HEX and should work ...
The code sample never did work. Add the fact that Melanie is talking...
Hi there,
Well i did get it to work, but by using a 16F88 ....
I could not get the tiny bl to work on the 2420, so i tried a different part to be sure it actually worked, it did work on a 16F88....
Great !
Regards,
UltiBlade
Hi,
I sometimes have problems with adc_in. Try this piece of code where you want to adc_in:
ADCON0.1 = 1 'Start ADC conversion
while ADCON0.1 = 1 :wend...
Just wondering. With the pbp ON INTERRUPT STATEMENT i could do a RESUME to a specific label.
This is not possible with the DT int, right ?
OK ! I will give the Dtint a try ...
Thanks for the fast reply !
Best regards,
UB
Hi !
I have a small question. If i use the following code:
;==== Dec's for OSC
DEFINE OSC 8 'Int OSC @ 8 MHz, for PBP
OSCCON = %01110001 ...
You are right ! Missed that one, sorry ..
Will order some samples as soon as possible, hoping that support for the part in PBP will be available soon ..
Best regards,
UB
Yep, if only it had eeprom .... :-(
Hi Naga,
I did some RC5 controlled projects last year.
I did some searching but i could only find some of my test code.
You should read the info found on...
Hi Bruce,
Thank you for your detailed answer ! All is clear now.
I have adapted the code in a way that the led's never go below 12uS, that way the 'color' switch on and off effect (color...
Exactly what is it what you are trying to build ? TTL serial communication to a Nokia 6210 ?
Serial comms from a microchip to another device can be achieved in various ways ...
Dear Jerson & Bruce,
I could not get here earlier, sorry. I appreciate your efforts !
Jerson, if i declare the delay variable as a byte, it takes even longer.
I just don't understand .. The...
Small update :
Declaring the variables as:
ledRED VAR WORD BANK0
Does reduce the total delay somewhat, the shortest delay (0) now results in 20uS ..
Hi Jerson,
I understand your questions, let me explain some more :
I drive 3 powerled's directly from the mains using a led driver board. These led's are switched by FET's, each on it's own...
Google came up with an interesting piece of code.
I did some tests and it seems to do the trick.
If called using "@ wait 0" it delays 1uS,
if called using "@ wait 1" it delays about 2,5uS,
if...
You are right about the 1us. I'm using this to be able to fade between colors.
If I turn on the red led, wait 333uS, then turn on the green led, wait 333uS, and then the blue led and wait 333uS...
You are so right !
The thing is however, i have tmr1 setup as a counter and i use its overflow to sync the whole program on 100hz.
I have three different led's that are driven by fet's. Each...
Wow, Thanks.
I'm gonna try this. Tried the for..next just yet but it won't go below 5us delay.
Jerson, i think this would do the trick, but i need to figure out how to let the software 'choose'...