Search found 438 matches

by brandonb
Tue May 05, 2015 2:58 am
Forum: Flowcode V5
Topic: 16(L)F178x family
Replies: 1
Views: 3985

Re: 16(L)F178x family

18f26k80 has 12bit adc, its a 28 pin, this chip does have some funny configuration and does require the low esr capacitor. on the other spectrum microchip offers some spi based adc's wtih 8,10,12 bit resolution. when you search their site your looking for successive aproximation adc's. things that a...
by brandonb
Sun Feb 23, 2014 11:15 am
Forum: Flowcode V5 Issues
Topic: tmr1 and tmr1 ext osc
Replies: 2
Views: 6890

Re: tmr1 and tmr1 ext osc

thanks, i didn't realize, a while back i discovered this problem and there was no fix, then i learned how to read datasheets, was adding tmr1,3,5 to libraries tonight and figured would post that
by brandonb
Sun Feb 23, 2014 7:44 am
Forum: Flowcode V5 Issues
Topic: tmr1 and tmr1 ext osc
Replies: 2
Views: 6890

tmr1 and tmr1 ext osc

at least with 16f1939 when enable tmr1 it cuts out useage of c0,c1 pins... the problem is when select instruction clock as source it should clear bit 3 in t1con register... after enable tmr1 put this line of code afterwards to regain control of c0,c1 pins

Code: Select all

t1con&=~(1<<3);
by brandonb
Thu Feb 20, 2014 2:02 am
Forum: Flowcode V5
Topic: Speech Output
Replies: 3
Views: 4202

Re: Speech Output

by brandonb
Wed Jan 01, 2014 6:20 am
Forum: Flowcode V5
Topic: Happy New Year!
Replies: 7
Views: 7091

Re: Happy New Year!

cheers :D
by brandonb
Sat Nov 30, 2013 6:58 pm
Forum: Flowcode V5 Issues
Topic: 12f1840 spi inop
Replies: 2
Views: 6744

Re: 12f1840 spi inop

ben: i was excited and forgot to initialize in flowcode.....im writing librarys for this by looking at datasheet and i found that any chip with 1800 in the name the sspif bit does not set when using it to determine message complete, this is kind of weird because its the way they instructed in datash...
by brandonb
Thu Nov 28, 2013 8:38 am
Forum: Flowcode V5 Issues
Topic: 12f1840 spi inop
Replies: 2
Views: 6744

Re: 12f1840 spi inop

this works in flowcode, a brain glitch on my part :lol:
by brandonb
Tue Nov 26, 2013 9:21 am
Forum: Flowcode V5 Issues
Topic: 12f1840 spi inop
Replies: 2
Views: 6744

12f1840 spi inop

is there anything special to do on this chip to get spi working? i wrote spi code for it and can't get it working either, i get one pulse on power on and thats it, did internet search and erratica search but shows nothing... can someone look into this for me have plans for it if resolved forgot to s...
by brandonb
Tue Nov 26, 2013 1:17 am
Forum: Flowcode V5
Topic: spi pic to pic
Replies: 6
Views: 5931

Re: spi pic to pic

working spi master slave, this is a simple test but you can see how this can be expanded to send and process any instruction, and send back as many bytes the master is programmed to send.... it is important when sending message to slave that at least a 1ms delay is used here is master code 16f1939 s...
by brandonb
Sun Nov 24, 2013 8:07 am
Forum: C and ASM Programming
Topic: spi clock
Replies: 2
Views: 10028

Re: spi clock

i don't know it all works great now when i rewrote it in old school fashion void spi_init(char _ckp, char _cke, char _smp, char _sspm){ clearbit(intcon,7);// disable interrupts while setup clearbit(trisc,3);// set SCK pin as output setbit(trisc,4);// set DSI pin as input clearbit(trisc,5);// set SDO...
by brandonb
Wed Nov 20, 2013 8:55 am
Forum: C and ASM Programming
Topic: spi clock
Replies: 2
Views: 10028

spi clock

in flowcode i can communicate with external eeprom and sram chips with spi clock set to idle low which would be mode 0,0... in c this works as well with the exception that the master can't read the slaves sent data correctly..... the only way using spi in c that i can receive information from extern...
by brandonb
Tue Nov 19, 2013 8:14 pm
Forum: Programming Tips & Tricks
Topic: 50Hz PWM
Replies: 15
Views: 15396

Re: 50Hz PWM

when i get off work will get that done for you
by brandonb
Tue Nov 19, 2013 3:05 am
Forum: Programming Tips & Tricks
Topic: 50Hz PWM
Replies: 15
Views: 15396

Re: 50Hz PWM

here you are, this is a 50hz pwm 0-100% sweep program set up for your chip
YOUR PWM.fcf
(9.5 KiB) Downloaded 726 times
cheers
by brandonb
Mon Nov 18, 2013 9:27 pm
Forum: Programming Tips & Tricks
Topic: 50Hz PWM
Replies: 15
Views: 15396

Re: 50Hz PWM

you'll have to set if up for your chip, and change c code to

Code: Select all

t2con=4; pr2=199;
YOUR PWM.fcf
(13.23 KiB) Downloaded 713 times
by brandonb
Sun Oct 20, 2013 7:37 pm
Forum: Flowcode V5
Topic: LCD 16X1 problem
Replies: 9
Views: 9769

Re: LCD 16X1 problem

try this... use it as a 1x16 that is addresses 0-16 for cursor
PILIUM_CONTROL_LCD.fcf
(90.14 KiB) Downloaded 508 times
by brandonb
Sun Oct 20, 2013 1:42 pm
Forum: Flowcode V5
Topic: LCD 16X1 problem
Replies: 9
Views: 9769

Re: LCD 16X1 problem

fotio's post your flowchart and i'll change the code to make it work for you
by brandonb
Sun Oct 20, 2013 10:46 am
Forum: Programming Tips & Tricks
Topic: tmr2 (computer app)
Replies: 5
Views: 20898

Re: tmr2 (computer app)

Looking at the app and your algorithm , there are some clever programming skills (by the both of you)! thanks man,... the c code was the algarithm that i wrote for rod using mikroc,... he copied it over and made some mods so it works with his compiler, then over the next week he added all the cool ...
by brandonb
Sun Oct 20, 2013 9:27 am
Forum: Programming Tips & Tricks
Topic: tmr2 (computer app)
Replies: 5
Views: 20898

tmr2 (computer app)

to demystify the tmr2 interrupt, a friend (rod maher) and i came up with a tmr2 calculator computer app that will speed up project development time and increase confidence in using this interrupt, here is a link, PICTimer2Calculator.zip or direct link: https://dl.dropboxusercontent.com/u/10367218/PI...
by brandonb
Thu Oct 17, 2013 8:37 am
Forum: Flowcode V5
Topic: LCD 16X1 problem
Replies: 9
Views: 9769

Re: LCD 16X1 problem

hey fotio's i don't have a 16x1 but i pretended i did with a 16x2... assumming that the address is starting with 0x0 for first char and char 8 is 0x40, give this a try in supp window i created these variables char char_count=0; char change_line=0; then i created a new function for lcd called "check_...
by brandonb
Mon Sep 23, 2013 6:04 am
Forum: Flowcode V5
Topic: Port Pin Toggle
Replies: 10
Views: 7940

Re: Port Pin Toggle

Can we just do it without C in simple way? yes, sorry about that, i thought that was what you were going after, i noticed the mikroc coding, to toggle a bit just make the pin or port an output with a flowcode output icon, then use this if your gonna toggle the bit on B0 latb^=1<<0; don't know if th...
by brandonb
Sun Sep 22, 2013 1:15 pm
Forum: Flowcode V5
Topic: Port Pin Toggle
Replies: 10
Views: 7940

Re: Port Pin Toggle

first you have to turn off the analog selects, then use tris to make pin output, then use toggle like this, this is just to toggle b0 pin, with out any other pins accounted for anselb=0;// disable bport analog module trisb&=~(1<<0);// set b0 as output latb&=~(1<<0);// set b0 as low while(1){ latb^=1...
by brandonb
Sun Sep 08, 2013 8:47 pm
Forum: Flowcode V5
Topic: RC5 compo problem on P18F4520
Replies: 10
Views: 11292

Re: RC5 compo problem on P18F4520

i wanted to go alittle further with this: here is a picture of rc5 message and how i read it fotios rc5 explain.jpg here is a logic analyzer caputure with notes, im commanding outputs to check timing, top is rc5 after decoder at b0 pin next is duration of intB0 interrupt next is duration of first pa...
by brandonb
Sun Sep 08, 2013 8:17 pm
Forum: Flowcode V5
Topic: RC5 compo problem on P18F4520
Replies: 10
Views: 11292

Re: RC5 compo problem on P18F4520

hey fotios, about two years ago you inspired me to keep trying as i didn't understand anything about coding at the time, wanted to say thanks, it has given me more joy than you could imagine to :D, if i had one of those chips i could impliment it for you, yes the 1939 is an awesome chip, its my favo...
by brandonb
Sun Sep 08, 2013 1:05 am
Forum: Flowcode V5
Topic: RC5 compo problem on P18F4520
Replies: 10
Views: 11292

Re: RC5 compo problem on P18F4520

hey fotios, if you want to create your own rc5 receive with full error checking, here is the code rc5 with error detect.fcf and here is my c code on it incase you wanted to impliment the function //----------------------- RC5 REMOTE CONTROL RECEIVE DATA -------------------------------- //--RC5--RECE...
by brandonb
Mon Sep 02, 2013 9:22 pm
Forum: Programming Tips & Tricks
Topic: Remote Control RF Modules.
Replies: 6
Views: 17358

Re: Remote Control RF Modules.

for guys in the states they have those at adafruit http://www.adafruit.com/products/1096