Search found 438 matches

by brandonb
Thu Mar 28, 2013 3:27 am
Forum: Flowcode V5
Topic: 16 bit timer1 formula?
Replies: 13
Views: 4297

Re: 16 bit timer1 formula?

gary, thanks for conferming this is normal... i thought i was missing something because it was so far off, figured the whole point of a timer interrupt was that it was solid, the 8 bit versions are
by brandonb
Mon Mar 25, 2013 4:24 am
Forum: Flowcode V5
Topic: 16 bit timer1 formula?
Replies: 13
Views: 4297

Re: 16 bit timer1 formula?

i rewrote the code in another compiler just for kicks and its the same :( unsigned int i; void interrupt() { if(pir1.TMR1IF && pie1.TMR1IE) { tmr1h=255; tmr1l=96; lata|=1<<5; for(i=0;i<2;i++){} lata&=~(1<<5); pir1. TMR1IF=0; } } void main() { osccon=0xf0;//32Mhz ansela=anselb=0; trisb=tr...
by brandonb
Mon Mar 25, 2013 3:30 am
Forum: Flowcode V5
Topic: 16 bit timer1 formula?
Replies: 13
Views: 4297

Re: 16 bit timer1 formula?

martin, are there speed limitations on the timer1 or should i change the code... here is a calculator that i created from your equasion, from top to bottom prescaler 1,2,4,8 tmr1 calculator.fcf running th calculations for 50Khz i come up with the numbers on the top line when simulate, to conferm thi...
by brandonb
Sat Mar 16, 2013 6:32 am
Forum: Flowcode V5
Topic: Pic to Pic RS232 communication
Replies: 5
Views: 1517

Re: Pic to Pic RS232 communication

alright man, here's a project i did over xmas, i reduced it to show as example, in this one i have two 1938 chips, one sends uart instructions and strings for lcd the other 1938 chip receives the instructions and strings then updates display based on data and commands it received via 9 bit uart, if ...
by brandonb
Fri Mar 15, 2013 8:02 am
Forum: Flowcode V5
Topic: glcd font size incorrect
Replies: 5
Views: 1684

Re: glcd font size incorrect

http://www.4dsystems.com.au/downloads/Semiconductors/PICASO-SGC/Docs/PICASO-SGC-COMMANDS-SIS-rev9.pdf Selects one of internal fonts. The supplied 3 fonts are: 00 hex : 5x7 small size font set 01 hex : 8x8 medium size font set 02 hex : 8x12 large size font set 03 hex : 12x16 largest size font set ma...
by brandonb
Fri Mar 15, 2013 4:01 am
Forum: Flowcode V5
Topic: Why RC5 Don't work?
Replies: 3
Views: 1111

Re: Why RC5 Don't work?

are you using the current version of flowcode? if not what happens is it outputs on A0, in v5.5 the pin assignment was fixed
i use rc5 and its awesome
by brandonb
Thu Mar 14, 2013 8:14 pm
Forum: Flowcode V5
Topic: Pic to Pic RS232 communication
Replies: 5
Views: 1517

Re: Pic to Pic RS232 communication

jordy, when i have rs232 talk from pic to pic i use 9 bit uart, in this way you have 0-255 in data and 256 to 511 in commands, can send a command like 300 to start sending data, then send your string, followed by a 325 which signifies end of string, i do this often, when controlling pwms and such i ...
by brandonb
Sun Mar 10, 2013 11:28 pm
Forum: Programming Tips & Tricks
Topic: Controlling LCD Tutorial with only o/p and delay icons.
Replies: 11
Views: 9404

Re: Controlling LCD Tutorial with only o/p and delay icons.

think i might have it, initializes clears and returns to home prints number variables 0-9999999 prints string variables and termainates at last letter full cursor placement top line 0-15 bottom line 64-79 give it a try and tell me what you think? playing with strings.fcf here is a screen shot of pro...
by brandonb
Sun Mar 10, 2013 10:19 am
Forum: Programming Tips & Tricks
Topic: Controlling LCD Tutorial with only o/p and delay icons.
Replies: 11
Views: 9404

Re: Controlling LCD Tutorial with only o/p and delay icons.

was playing around and realized i could break a string variable down like an array and send the characters out one byte at a time, check it out, sent two strings out to display, also to send numbers would be really easy as well since would be sending them out one digit at a time it would be number+4...
by brandonb
Sun Mar 10, 2013 7:45 am
Forum: Flowcode V5
Topic: rc5 interrupt question
Replies: 1
Views: 736

rc5 interrupt question

in most applications i have at least one switch attached to a port interrupt to abort operations, was wondering if there is a way to hack the interrupt so when a certain command value is received that it is processed from the isr instead of polling for new data received
by brandonb
Sun Mar 10, 2013 5:02 am
Forum: Programming Tips & Tricks
Topic: Controlling LCD Tutorial with only o/p and delay icons.
Replies: 11
Views: 9404

Re: Controlling LCD Tutorial with only o/p and delay icons.

yes, i borrowed those from the matrix c code cd, the datasheet for this display is really screwed up on that part, but it does send 0011 three times to get it into 4 bit mode then 0010 here is the snippet from the cd /* LCD initialize */ 0x33, /* Set for 4 bit operation */ 0x32, /* Set for 2 line LC...
by brandonb
Sun Mar 10, 2013 2:31 am
Forum: Programming Tips & Tricks
Topic: Controlling LCD Tutorial with only o/p and delay icons.
Replies: 11
Views: 9404

Re: Controlling LCD Tutorial with only o/p and delay icons.

this is for danny to show a simplier way of doing it :D --- hardware --- data0=c0 data1=c1 data2=c2 data3=c3 rs=c5 en=c4 wr=tied to ground(write only mode) lcd_masking.jpg in this fcf i took the lcd_byte variable and sent it to the output pins for data0-3 by useing bit masking, in binary bits 7-0 ha...
by brandonb
Fri Mar 08, 2013 5:32 am
Forum: Programming Tips & Tricks
Topic: Controlling LCD Tutorial with only o/p and delay icons.
Replies: 11
Views: 9404

Re: Controlling LCD Tutorial with only o/p and delay icons.

holy **** i figured it out, i had the pins in the wrong order (my bad) :roll: display flashes message on hardware below BIT BANGED LCD.fcf ... to add byte_to_nibble macro works best set up with delays as shown here connections are as would be shown in flowcode data0 d5 data1 d4 data2 d3 data3 d2 rs ...
by brandonb
Thu Mar 07, 2013 8:44 pm
Forum: Programming Tips & Tricks
Topic: Controlling LCD Tutorial with only o/p and delay icons.
Replies: 11
Views: 9404

Re: Controlling LCD Tutorial with only o/p and delay icons.

martin, i was working on trying to do the same thing as post, i created a macro that takes a byte, splits to two nibbles, splits to 4 pins and sends high nibble followed by low nibble, when i looked at the datasheet on mine its confusing, was hoping to understand how to control and lcd, heres what i...
by brandonb
Wed Mar 06, 2013 8:17 pm
Forum: Flowcode V5
Topic: glcd font size incorrect
Replies: 5
Views: 1684

Re: glcd font size incorrect

here's what i mean, this simi results for test are in the upper right corner of picture, the simi matches the description in help file, i take it the simulation is generic among all lcd types, in reality it should be listed as small,small bold, medium,large
by brandonb
Wed Mar 06, 2013 4:48 pm
Forum: Flowcode V5
Topic: glcd font size incorrect
Replies: 5
Views: 1684

Re: glcd font size incorrect

thanks for testing that martin, your picture results are same as mine, but that doesnt match what the font is explained as or what the simi screen shows, i could have sworn i had the true font #3, last night i mapped everything out with the simulator then wanted to conferm on hardware which is why i...
by brandonb
Wed Mar 06, 2013 7:17 am
Forum: Flowcode V5
Topic: glcd font size incorrect
Replies: 5
Views: 1684

glcd font size incorrect

can someone run code below with eb076 and tell me if the simi window matches the glcd, mine doesnt, im running v5.4...
sizes 1-3 are not correct to simi on my side
by brandonb
Mon Mar 04, 2013 7:34 am
Forum: Flowcode V5
Topic: 4d glcd problems
Replies: 1
Views: 647

4d glcd problems

with the eb076, when i reprogram or disconnect or reconnect power i get a white screen, funny though the touch screen and the rest of the unit works fine, i can press the screen in places as if i were looking at the gui and the touch is processed and there is always proper uart signal when symptom o...
by brandonb
Sun Mar 03, 2013 10:08 am
Forum: Flowcode V5
Topic: eb076 and uploading pictures?
Replies: 3
Views: 1194

resolved: eb076 and uploading pictures?

got it figured out with this link (thanks david) http://www.matrixmultimedia.com/resources/files/articles/MX031%20-%20Multimedia%20Files%20on%204D%20Eblocks.pdf here is flowchart glcd metallica.fcf i dropped in all 5 files on sd card that was generated here is picture of test https://dl.dropbox.com/...
by brandonb
Sun Mar 03, 2013 8:12 am
Forum: Flowcode V5
Topic: eb076 and uploading pictures?
Replies: 3
Views: 1194

Re: eb076 and uploading pictures?

i have been at this for hours and i am still nowwhere... im using page #14 of datasheet, i have a 2 gig sd card thats formatted to FAT, i uploaded 4 pictures into software and built project, it created some files i took the GCI file and dropped it into the freshly formatted sd card, opened up the da...
by brandonb
Sun Mar 03, 2013 1:37 am
Forum: Flowcode V5
Topic: eb076 and uploading pictures?
Replies: 3
Views: 1194

eb076 and uploading pictures?

i thought there was a tutorial for uploading pictures on to a fat16 formatted sd card for the eb076,
i have a formatted fat16 and 32 cards, can someone sum up the steps it takes to do this?
by brandonb
Sat Mar 02, 2013 10:52 am
Forum: Programming Tips & Tricks
Topic: Creating Custom LCD Characters Flowcode V4 & V5
Replies: 8
Views: 15595

Re: Creating Custom LCD Characters Flowcode V4 & V5

wow, thats really cool, try this to see what i think of it FCD_LCDDisplay0_RAM_Write(0,14,31,0,10,0,17,14,0); i had no clue it was that easy in flowcode, after i read the web link i have a quicker way of generating the number code! download mikroc free version, there is a custom lcd char creation un...
by brandonb
Thu Feb 28, 2013 12:15 am
Forum: Flowcode V5
Topic: file types problem
Replies: 2
Views: 835

Re: file types problem

Please make sure you have uninstalled ccs & flowcode and restart your machine and make fresh install of flowcode. You will get the effect of ccs deleted.
thanks, will have to do that in a couple days
by brandonb
Wed Feb 27, 2013 3:38 am
Forum: Programming Tips & Tricks
Topic: measuring pulsewidth (000.00m/s)
Replies: 1
Views: 2458

measuring pulsewidth (000.00m/s)

same as tachometer project this one uses a 100khz tmr interrupt to measure and display rpm, generally when i do fast timer projects i use seperate chips to do this task like small 12f1840 chips and create a multiplexed 9 bit uart send receive lines so chips can exchange information when requested fu...