Search found 26 matches

by jose
Sun Jul 10, 2016 6:03 pm
Forum: General Programming
Topic: help with AC phase control
Replies: 9
Views: 10815

Re: help with AC phase control

now the screen shots...
ch1 yellow - zerocrossing at RB0
ch2 blue - pulse out
by jose
Sun Jul 10, 2016 5:58 pm
Forum: General Programming
Topic: help with AC phase control
Replies: 9
Views: 10815

Re: help with AC phase control

I just see and test your new file. It look stable For zero detection I'm using a TLP620 like picture below, in my case with 2k2 resistor to 24Vac and the other side a 10k resistor connected to RB0 and 5V that gives a pulse about 600us. Also some oscilloscope screens shots Phase = x * 7 / 10 + 74 i h...
by jose
Sun Jul 10, 2016 5:20 pm
Forum: General Programming
Topic: help with AC phase control
Replies: 9
Views: 10815

Re: help with AC phase control

Hi Martin, thank you!
The pulse is contained inside half cycle now, but sometimes randomly I see an extra pulse.
To discard any ADC problem I used a fixed number but get same results. I will continue testing...
by jose
Sun Jul 10, 2016 11:40 am
Forum: General Programming
Topic: help with AC phase control
Replies: 9
Views: 10815

Re: help with AC phase control

Hi again,
This is the way i find to get it work.
Basically, after zero detection, we set the timer with a starting value for the delay angle...now is easy!
The flowchart is commented
Any suggestions / improvements are welcome
Regards
by jose
Sun Jul 03, 2016 11:16 am
Forum: General Programming
Topic: help with AC phase control
Replies: 9
Views: 10815

Re: help RBO INT plus TMR0...

Hi
the following arduino example works fine and i will like to implement it in flowcode but i still can't get it to work because i don't know how to deal with the timer / comparator functions yet...
I'm sure this will be "kid's stuff" for some of you, i will be grateful for any tips to do this
thanks
by jose
Thu Jun 30, 2016 11:48 pm
Forum: General Programming
Topic: help with AC phase control
Replies: 9
Views: 10815

help with AC phase control

Hi to all,
I'm trying to program a thyristor controller using external interrupt on RB0 INT attached to photocoupler to detect AC zero-cross, and then, maybe use timers/pwm to create the pulse t2 and adjustable delay t1 until max t3 on the picture
Any help please...
Thanks
by jose
Thu Sep 15, 2011 11:35 pm
Forum: Programming Tips & Tricks
Topic: Adding a PS2 keyboard to your project
Replies: 10
Views: 20164

Re: Adding a PS2 keyboard to your project

After pressing a extended key, an arrow for example, you have to press the next key twice to have its value.
This new file correct this problem.
by jose
Mon Sep 12, 2011 12:11 am
Forum: Flowcode V4
Topic: avrisp mkII firmware
Replies: 8
Views: 6012

Re: avrisp mkII firmware

Hello David, It's working! i used your indication: STK500 %a %t "%D\%f.hex" "%f.hex" %cfg %c0 %c1 %c2 %c3 and i have to change the path in avrc.bat file from: @SET STKPath="C:\Program Files\Atmel\AVR Tools\STK500\Stk500.exe" to: @SET STKPath="C:\Programas\Atmel\AVR Tools\STK500\Stk500.exe" Thank you...
by jose
Tue Sep 06, 2011 2:14 pm
Forum: Flowcode V4
Topic: avrisp mkII firmware
Replies: 8
Views: 6012

Re: avrisp mkII firmware

Hi David,
Still not working... sorry
by jose
Tue Sep 06, 2011 12:23 pm
Forum: Flowcode V4
Topic: avrisp mkII firmware
Replies: 8
Views: 6012

Re: avrisp mkII firmware

Hi David, The hardware rev. and firmware version are the same i'm using the drive is Jungo driver and compiler settings are: C:\Programas\Matrix Multimedia\Flowcode AVR V4\Tools\MX_bats\avra.bat %t "%D\%f.elf" "%D\%f.c" "%D\%f.lst" C:\Programas\Matrix Multimedia\Flowcode AVR V4\Tools\MX_bats\avrb.ba...
by jose
Mon Sep 05, 2011 7:43 pm
Forum: Article Discussion
Topic: MX015 - Basic USB Communications for PIC
Replies: 15
Views: 27804

Re: MX015 - Basic USB Communications for PIC

Hi Ben,
I finished this litlle ps2 keyboard program
http://www.matrixmultimedia.com/mmforum ... =26&t=8870

Regards
jose
by jose
Mon Sep 05, 2011 7:36 pm
Forum: Programming Tips & Tricks
Topic: Adding a PS2 keyboard to your project
Replies: 10
Views: 20164

Adding a PS2 keyboard to your project

Hi, This program decodes data comming from keyboard and display its decimal value on a LCD. It decodes normal keys and some extended keys like the arrows keys that maybe can be usefull to control something. The key value is store in "key_data" variable and you can use it for others purposes. I think...
by jose
Mon Sep 05, 2011 11:26 am
Forum: Flowcode V4
Topic: avrisp mkII firmware
Replies: 8
Views: 6012

Re: avrisp mkII firmware

Ok David, thanks
by jose
Mon Sep 05, 2011 10:54 am
Forum: Flowcode V4
Topic: avrisp mkII firmware
Replies: 8
Views: 6012

avrisp mkII firmware

Hello,
After firmware update of my avrisp mkII with last version of avr studio4, i can't program any chip with flowcode´. Its possible to program ex: atmega32 with avr studio but not at90s8515.
Where can i find a previous firmware version, or waht can i do?
Thanks
by jose
Thu Sep 01, 2011 4:25 pm
Forum: Article Discussion
Topic: MX015 - Basic USB Communications for PIC
Replies: 15
Views: 27804

Re: MX015 - Basic USB Communications for PIC

Hi Ben, Ok i will try with Microchip examples. I guess you mean PS2_key and PS2_key2 files, i have those but they gives this error: " Error: Unresolved external function:'sendByte(unsigned char)". The strange thing is that i remove all references to "sendByte and error remains. If you solved this or...
by jose
Wed Aug 31, 2011 1:19 pm
Forum: Article Discussion
Topic: MX015 - Basic USB Communications for PIC
Replies: 15
Views: 27804

Re: MX015 - Basic USB Communications for PIC

Hello Ben, I was using a 4 MHz crystal, then i change it to 24MHz and it is working (some times not) the file i'm using is your Ex2.keyboard. i will try others configuration speeds. The example I need is to connect a real USB keyboard to the chip and read hex or decimal key value to a variable and t...
by jose
Fri Aug 26, 2011 9:41 am
Forum: Article Discussion
Topic: MX015 - Basic USB Communications for PIC
Replies: 15
Views: 27804

Re: MX015 - Basic USB Communications for PIC

Ben,
Will it be possible for you to give a small exemple of reading a key from a PC USB keyboard into a variable?
It will be a great help
Thanks
by jose
Fri Aug 26, 2011 12:24 am
Forum: Article Discussion
Topic: MX015 - Basic USB Communications for PIC
Replies: 15
Views: 27804

Re: MX015 - Basic USB Communications for PIC

Hello Ben,
I see now, thanks.
I'm having trouble communicating with the pc: detects but does not recognize the USB device (?)
I could not find the article "communicating with the PC" referred to in MX015.pdf, to have some help about hyper terminal and USB
by jose
Thu Aug 25, 2011 1:21 am
Forum: Article Discussion
Topic: MX015 - Basic USB Communications for PIC
Replies: 15
Views: 27804

Re: MX015 - Basic USB Communications for PIC

Hello Ben,
Do you have any example for a PC USB keybord?
Or can you give some tips how to..?
Thanks
by jose
Tue Jun 02, 2009 12:04 am
Forum: Article Discussion
Topic: MX008 - Introduction to interrupts
Replies: 6
Views: 20389

Re: Introduction to interrupts

Hello Sean,
This was a silly question... sorry
The 0 and 1 are LED position numbers!

Thanks
by jose
Sun May 31, 2009 4:03 pm
Forum: Article Discussion
Topic: MX008 - Introduction to interrupts
Replies: 6
Views: 20389

Re: Introduction to interrupts

Hi Sean,
Thanks for your article!
I have a doubt:
Why in the main program the component LED variable is 0 and why in the tmr0isr the component LED variable is 1?
Thanks
Regards
JosΓ©
by jose
Sun May 31, 2009 3:50 pm
Forum: Programming Tips & Tricks
Topic: Infrared decoder
Replies: 9
Views: 15643

Re: Infrared decoder

Hi,

The IR e-block draw is wrong! It still works but the correct way is to connect 22K resistor to +5V.
Sorry…
by jose
Sun Nov 16, 2008 12:55 pm
Forum: Programming Tips & Tricks
Topic: Infrared decoder
Replies: 9
Views: 15643

Re: Infra red decoder

Hi Jan,
The interrupt process that you used to detect pulses is precise and better.
I tried to use the same process, but I wasn’t sure how to do it. It's something I still like to do…
If you or someone have any ideas how to do it with Flowcode, please let me know.
Regards
Jose
by jose
Wed Nov 12, 2008 11:11 pm
Forum: Programming Tips & Tricks
Topic: Infrared decoder
Replies: 9
Views: 15643

Re: Infra red decoder

Hello Jan, I first start to enable RB0/INT inside main loop and then disable it inside ir_dec routine. It works almost the same but it had some little problems: I think it has with non rc5 remote control. The way I understand it, the interrupt is enabled just once and is used only for the first 1 to...
by jose
Tue Nov 11, 2008 12:08 am
Forum: Programming Tips & Tricks
Topic: Infrared decoder
Replies: 9
Views: 15643

Re: Infra red decoder

Hi Ben, Jan and all forum users
I'm glad you can find it useful
Thanks Matrix team

Regards,
JosΓ©