Search found 527 matches

by Spanish_dude
Sat Nov 16, 2013 7:52 am
Forum: General Programming
Topic: Floating math formula query
Replies: 3
Views: 4247

Re: Floating math formula query

No, you have to keep the typecast. int a, b = 10, c = 4; float d; a = b/c; d = (float)b/(float)c; The variable "a" will be 2, because it's an integer and thus no decimals. The variable "d" on the other hand will be 2.5, because we convert the variables "b" and "c" from integer to floats, which allow...
by Spanish_dude
Sat Oct 26, 2013 12:30 pm
Forum: General Programming
Topic: Getting started with PIC - need advise !
Replies: 7
Views: 6711

Re: Getting started with PIC - need advise !

Hmm, I can't seem to find a list of supported microcontrollers for the PICStart plus. If it works, you don't need a new one, unless you want a USB programmer instead of the old RS232. But, as I said, MM's programmer is made so you can plug-in E-blocks, so it's easier for prototyping. Or you could tr...
by Spanish_dude
Fri Oct 25, 2013 9:55 pm
Forum: General Programming
Topic: AVR Timer interrupt issues (TCNT0)
Replies: 7
Views: 7280

Re: AVR Timer interrupt issues (TCNT0)

Could you provide the compiled C code ?
I don't have flowcode for AVR.

Nicolas
by Spanish_dude
Fri Oct 25, 2013 9:42 pm
Forum: General Programming
Topic: Getting started with PIC - need advise !
Replies: 7
Views: 6711

Re: Getting started with PIC - need advise !

Hi Alberta, What's your preferred programming language ? Microchip has a free IDE (MPLABX) with C/C++ compilers (XC8, XC16, XC32). There are free versions of the compilers provided by microchip but you should know there's a file size restriction. I'm sure you could find some interesting source codes...
by Spanish_dude
Sun Oct 20, 2013 2:16 am
Forum: Flowcode V5
Topic: LCD 16X1 problem
Replies: 9
Views: 9880

Re: LCD 16X1 problem

It must be that the DDRAM on your LCD is re-arranged differently than on the 16x2 LCD from Matrix Multimedia, even though it's compatible with the HD44780 controller. Maybe it's like Brandonb said. Instead of having a continuous DDRAM line from 0x00 to 0x0F, you have an LCD with a DDRAM going from 0...
by Spanish_dude
Sun Oct 20, 2013 2:03 am
Forum: General Programming
Topic: Custom 7Segment display characters
Replies: 10
Views: 10327

Re: Custom 7Segment display characters

:o ... I'll try to remember that Martin, thanks :D.
by Spanish_dude
Fri Oct 18, 2013 12:13 am
Forum: Flowcode V5
Topic: LCD 16X1 problem
Replies: 9
Views: 9880

Re: LCD 16X1 problem

Have you tried just keeping the configuration at 16x2 and only writing on the first line ?
by Spanish_dude
Thu Oct 17, 2013 11:44 pm
Forum: General Programming
Topic: Custom 7Segment display characters
Replies: 10
Views: 10327

Re: Custom 7Segment display characters

Hi, It's quite simple. Make a LUT (lookup table)/array and go through the table whenever you want to display a certain pattern on your 7 segment display. LUT_7SEG[] = { 0x3F, // 0 0x06, // 1 0x5B, // 2 0x4F, // 3 // ... }; Checkout wikipedia for other hexcode: http://en.wikipedia.org/wiki/Seven-segm...
by Spanish_dude
Sat Sep 21, 2013 8:44 pm
Forum: Forums d'aide en français
Topic: LCDDisplay Ecriture en Ram : Résolu !!
Replies: 5
Views: 5318

Re: LCDDisplay Ecriture en Ram : Résolu !!

Au cas ou tu ne savais pas, sache que tu peux écrire des valeurs binaire, au lieu de convertir tout en décimal.
Il te suffit juste de mettre le préfixe "0b" (sans quote) et puis ta valeur binaire, par exemple : 0b00110101 ou même 0b01110.

- Nicolas
by Spanish_dude
Tue Sep 10, 2013 9:45 pm
Forum: Forums d'aide en français
Topic: LCDDisplay Ecriture en Ram : Résolu !!
Replies: 5
Views: 5318

Re: LCDDisplay Commande et Ecriture en Ram

D'après moi, tu écris les caractères à accent, rangée par rangée (de 5 bits) dans le CGRAM aux adresses allant de 0 à 7 avec la fonction "écriture en RAM". Après il ne te reste plus qu'a faire un PrintAscii et mettre une valeur entre 0 et 7. Tu n'as pas besoin de la fonction Commande, ça c'est juste...
by Spanish_dude
Sun Sep 01, 2013 11:49 pm
Forum: General Programming
Topic: Why associate a variable with an Input component?
Replies: 3
Views: 3026

Re: Why associate a variable with an Input component?

That's just the way the input component has been programmed. It sets the TRIS register so that the selected I/O are set to inputs and reads the inputs from the PORT register to a variable. This is what the input component does : TRISX = TRISX | mask; // set mask bits to TRISX variable = PORTX & mask...
by Spanish_dude
Fri Aug 30, 2013 11:12 pm
Forum: Flowcode V5 Free Edition
Topic: EB024 bluetooth Issue?
Replies: 13
Views: 9669

Re: EB024 bluetooth Issue?

Is there any difference between your v4 code and v5 ?
Could you post both of them on the forum so we can have a look ?

- Nicolas
by Spanish_dude
Fri Aug 30, 2013 11:07 pm
Forum: Flowcode V5
Topic: Dual-boot
Replies: 4
Views: 4281

Re: Dual-boot

You have a lot of stuff connected to your PIC ! I just checked the code real quickly and I have something to propose. Like kersing said, dual-boot implies you "reboot" the controller. From there you have two options IMO: 1) Have a variable in the EEPROM with which you can start one of the three prog...
by Spanish_dude
Thu Aug 29, 2013 12:19 am
Forum: Forums d'aide en français
Topic: RS232 Master et Multiple Slaves??
Replies: 2
Views: 3733

Re: RS232 Master et Multiple Slaves??

Le standard RS-232 permet une communication série, asynchrone et duplex entre deux équipements. Tu ne peux avoir qu'un master et un slave (ou master et master). Si tu veux communiquer avec plusieurs equipements tu devras trouver autre chose. Je n'ai pas de "meilleur" protocole de communication a te...
by Spanish_dude
Wed Aug 21, 2013 7:16 pm
Forum: Flowcode V5
Topic: 2 x16 lcd
Replies: 16
Views: 10331

Re: 2 x16 lcd

You can set a condition to your while loop. Right now, the while loop in Martin's "Scroll one line V2.fcf" code is always true: while (1); You can change that to a condition by clicking on the while loop icon and setting a condition. For example, you could get out of the loop when the text finishes ...
by Spanish_dude
Tue Aug 20, 2013 4:15 pm
Forum: Flowcode V5 Free Edition
Topic: Loop keeps repeating
Replies: 9
Views: 6886

Re: Loop keeps repeating

The watchdog timer is a timer, that when it reaches it's max value (or something like that) it resets the microcontroller. This is used to prevent the microcontroller of getting stuck inside a loop (or something similar). Let's say you have a program with a main loop and you are using the watchdog t...
by Spanish_dude
Tue Aug 20, 2013 9:33 am
Forum: Flowcode V5
Topic: RS232 bug or not ?
Replies: 6
Views: 4854

Re: RS232 bug or not ?

If you ever have that problem again, post your Flowcode file so we can take a look at it.
I personally never had any issues with the RS232 component.

- Nicolas
by Spanish_dude
Tue Aug 20, 2013 9:30 am
Forum: General Programming
Topic: Macro call directly from a variable
Replies: 4
Views: 6927

Re: Macro call directly from a variable

There's probably a complicated way to do it in C (pointer to function ?), but what you made is how I'd do it.
There's no way you can call a function just from setting a variable to a specific value.

- Nicolas
by Spanish_dude
Mon Aug 19, 2013 6:57 pm
Forum: General Programming
Topic: Unable to compile
Replies: 5
Views: 4063

Re: Unable to compile

Did you open your Flowcode file from a usb stick or other external memory device ?

From your post : "Unable to create C file Y:\......".
When you create a file on your computer it's usually created on the C drive.

- Nicolas
by Spanish_dude
Mon Aug 19, 2013 5:33 pm
Forum: Flowcode V5
Topic: Newbie frustration.
Replies: 9
Views: 6210

Re: Newbie frustration.

... For example 1st value is 152 Then if the second sample is 68 since not printing " " after 152 then the display will show 682 even though it is a byte that has been printed (since the 2 will remain from the previous number). Its just an LCD formatting issue. ... How did I not see that... *facepa...
by Spanish_dude
Sun Aug 18, 2013 7:15 pm
Forum: Flowcode V5
Topic: RS232 bug or not ?
Replies: 6
Views: 4854

Re: RS232 bug or not ?

Could you post your Flowcode file so I can take a look at it ?
It might be an error setting it's baudrate.

- Nicolas
by Spanish_dude
Sun Aug 18, 2013 7:10 pm
Forum: Flowcode V5
Topic: Newbie frustration.
Replies: 9
Views: 6210

Re: Newbie frustration.

That's strange ... Your RJH is an 8 bit variable and the TMR1L is 8 bit too.
Have you tried setting RJH to, let's say, 127 and see if it still shows values bigger than 255 ?

I don't see anything wrong in the code though...

- Nicolas
by Spanish_dude
Tue Aug 13, 2013 3:23 pm
Forum: Flowcode V5
Topic: How can I Apply to Test Flowcode 6 Beta as a beta-tester?
Replies: 1
Views: 2478

Re: How can I Apply to Test Flowcode 6 Beta as a beta-tester

From this post the beta should be released any day now.

- Nicolas
by Spanish_dude
Sun Aug 11, 2013 8:06 pm
Forum: E-blocks
Topic: EB076 backlight
Replies: 1
Views: 3299

Re: EB076 backlight

I've checked the PICASO-SGC datasheet (that's the controller used on the GLCD) and there doesn't seem to be any command for the backlight.
Anyways, I don't think OLED displays have a backlight... ?

What you could do is make the image a bit darker before sending it to the screen.

- Nicolas
by Spanish_dude
Fri Aug 09, 2013 10:49 pm
Forum: Forums d'aide en français
Topic: Problème de communication RS232???
Replies: 5
Views: 5132

Re: Problème de communication RS232???

Tu pourrais utiliser I²C ou même SPI, pas obligé d'utiliser le RS485.
Je n'ai pas d'expérience avec la communication via RS485, mais je suppose que maxim-ic devrait avoir quelques IC qui font la conversion vers RS485.