## Search found 48 matches

Return

Thu Sep 23, 2010 2:37 pm

### Re: Mathimatical question

Hello John

If I understand your question :

D=B when C=255 and D=A when C=0.

D = (((B-A)*C)/255) + A ; D must be an integer.
Be careful with the brakets or accuracy will be lost

If it is not the right answer : sorry ,i will remove it .

Daniel
Sun Nov 21, 2010 1:14 pm

### Re: problems whit lcd

Hello some3 try this file Is the led flashing ? (if not there is a trouble with pic or cristal (config seems to be OK)) - Have you got an oscilloscope ? if yes , do you see pulses (100us) on enable RB5 (pin 38 of 16F877) ---if yes : take a look at RB0 ...RB5 on Pic pins and on Lcd pins ---if not : r...
Wed Nov 24, 2010 2:19 pm

### Re: Distance Learning Course

Hello Stephan

Open the datasheet of your Pic (16F887 eg) with Foxit (or Acrobat).
Click on bookmark , and you will see : chapter 15 : Instruction Set Summary (p239).
You will find all Pic instructions.

Daniel

Sorry Steve , I wrote the same thing as you but I was a little slow.
Tue Nov 30, 2010 5:19 pm

### Re: Interrupt in Eico40

hello Jorgen for TIMER0, the frequency of the interrupt is (see datasheet of your favorite Pic, chapter Timer0) For a basic use of Flowcode f (INT) = f(Quartz) / 4 / (prediv) / 256 If you use C code : (INT) = f(Quartz) / 4 / (prediv) / X, you must add at the beginning of the interrupt macro a C icon...
Sat Jan 15, 2011 5:43 pm

### Re: Making a 4x16 LCD from two 2x16 LCDs

hello singhdeol

you can do something like this

LCD2x2x16.jpg

Daniel

PS think to connect VCC VDD GND and R/W
Tue Jan 18, 2011 11:01 am

### Re: How to receive/send RS232 Byte not Char

Hello Niro If you want to read 0xFF, in the properties of the RS232 component, you must choose int in the "char receive type". If there is no reception the return value will be 512. All is explained in the help file. rs_prop2.jpg Your variable must be an integer. I use Flowcode4 for Pic. D...
Fri Jan 21, 2011 12:59 pm

### 3C : LCD I2C

Hello I'm still using "Customize Component Code" (only for Flowcode v4) I'll post the code soon. There'll be all the usual "Component Macros" with an I2C management. I use a classic LCD with a GPIO (from Microchip) : MCP23008. The only rule is to respect the schematic below. lcd_...
Sun Jan 30, 2011 12:39 pm

### Re: 3C : LCD I2C

How to use I2C LCD. INTRODUCTION I2C bus is very interesting cause it needs only 2 lines of the micro-controller. You can find lots of components (RTC, thermometer, Led dimmer, …). The bus frequency is 100kHz, writing a register will take about 300us. It could be a bit slow for some components, but ...
Sun Jan 30, 2011 8:44 am

### Re: I2C device_ID

Hello kkrause

"Transaction" is useful when you want to read or write an EEPROM with 2 byte address (>= 256).

If you want to read the manufacturer byte, you must use a reserved address (see chapter Device ID) and macros : TransmitByte and ReceiveByte.

Daniel
Mon Aug 02, 2010 3:07 pm

### 3C : RS232 Parity (1)

Hello An interesting new function in Flowcode v4 is C Code Customization. With v3, it was possible to customize but you were obliged to modify a file in a sub directory of ..\Flowcode\.. and when you went off with your laptop, the modified file stayed at home (or at the office) in your desktop compu...
Mon Aug 02, 2010 3:14 pm

### 3C : RS232 Parity (2)

Files for parity = Odd

Daniel
Sun May 01, 2011 2:04 pm

### Re: Game of Life on LED Matrix

Hello Nicholas

In the macro "Stop" , there is a delay of 10ms.
You can reduce it (down to 10us)

Daniel
Tue May 10, 2011 5:30 pm

### Re: I2C

Hello Mario

have you had a look at this post :

viewtopic.php?f=5&t=6418&p=13533&hilit=ds1307+rtc#p13533

Daniel
Wed May 11, 2011 11:38 am

### Re: I2C

Hello Mario If you want to write (or read) the memory (RAM), it is the same thing as writing (or reading) the RTC registers. Only the value of the register is different. The 8 first bytes are RTC registers and the 56 others are RAM registers. The slave adress is always 0xD0 (write) or 0xD1 (read). T...
Fri Apr 29, 2011 4:07 pm

### Re: RS232 Component and RX Value 255

Hello Ron

It's very easy with Flowcode4 : choose integer for the "char receive type" in the RS232 properties.
With Flowcode3, If you know C language, you can try to customize the C code (think to make a back up before)

Daniel
Thu Jun 30, 2011 8:07 am

### Re: Rotory Encoder and PIC

Hello Indana

You can do something like this.
An other way is to use interrupt (RB0 or PortChange)

Daniel
Thu Jun 30, 2011 2:40 pm

### Re: Rotory Encoder and PIC

Hello Indana

If you use RB0 int , just connect one of the output of the encoder to RB0 and the other one anywhere.

If you use PortB Change , you will have to search which pin have changed and the sign of the edge .
With a 16F887 you can reduce the number of pins of the interrupt.

Daniel
Wed Jul 06, 2011 3:54 pm

### Re: DS1307 RTC

Hello John Hour = 0x19 ....... Year = 0x11 Registers are coded in BCD (not binary) . http://en.wikipedia.org/wiki/Binary-coded_decimal In your case : the time is 19 (7pm) it must be written 0001 1001 = 0x19. (dont write binary : 0001 0011 = 16 + 3 = 19) When you want to write (or read) a register yo...
Sun Oct 30, 2011 9:21 am

### Re: Problems when trying to compile to chip?

Hello Werner

For the LCD Eblock :

- The BLACK wire is not useful ( GND is the pin "9" of the D9)
- Where is connected the RED wire on the EB006 ? (it seems on +14V of the power screw terminals !!). LCD needs +5V.

Daniel
Wed Nov 09, 2011 7:45 pm

### Re: Using Serial LCD and Flowcode?

Hello Werner

Take a look at : viewtopic.php?f=26&t=8037

Daniel
Thu Nov 24, 2011 8:19 am

### 3C : DMX512

I"m steel using "Customisation Component Code" with Flowcde 4.5.18. DMX512 is a protocol "close" to RS232. My aim is that my pupils can manage a moving-head spot with a flowchart. The hardware is : - a Matrix board v3.3 (HP488 + 16F887) , an Eblock RS485 (EB062) and an XLR p...
Fri May 20, 2011 4:15 pm

Hello I'm still using "Customize Component Code" ! I like I2C protocol (sorry for other comms users), there are only 2 wires for this bus (and pull up) . You can choose any keypad (allowed by Matrix, from 1x1 to 4x4, see Extended Properties). The expander can be a MCP23008 or a PCF8574. Th...
Sun Jul 08, 2012 8:30 am

### Re: 3C : DMX512

Sorry, for the little delay. As written above, the flowchart is made for the Matrix board with 16F887 and an Eblock EB062 (RS485) on port C . For changing the value of a channel , push a button (Port A) and turn the potentiometer connected on A1( jumper must be on "Analog") LCD (port B) sh...
Thu Sep 27, 2012 5:29 am

### Re: RS232 et SPI

Bonjour Cyrilec

Dans les proprietes de la SPI, il faut modifier les connections des enables du DAC et NVM (prevu pour le Eblock).
Car cela corresp "pile" au RX TX.
Tu peux mettre la meme broche.

Daniel
Sat Sep 29, 2012 10:46 am