Doubt FLOWCODE AVR

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
Genilsonsa
Posts: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Doubt FLOWCODE AVR

Post by Genilsonsa »

Hello friends foristas like to know how I use for AVR the microcontroller AT89S51 or AT89S52,AT89S55,already that I have many here to spare and like to uses them,I know that there is no flowcode in support for this types of microcontrollers,however will have no fireworks for i uses it.

Genilsonsa
Posts: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: Doubt FLOWCODE AVR

Post by Genilsonsa »

Do you have any fireworks that you can use to use this microcontrollers WITH FLOWCODE .someone can give me a suggestion?.Thank you all

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Doubt FLOWCODE AVR

Post by Benj »

Hello,

It looks like that chip has an 8051 core which probably requires a different C compiler than the one built into Flowcode.

I've double checked by looking through the available devices in the current AVR compiler and can't find any reference to those chips.

Genilsonsa
Posts: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: Doubt FLOWCODE AVR

Post by Genilsonsa »

Thank you Benj by answer me.is that here in the company we have many this types of microcontrollers atmel old and was thinking and used ,but as i surmised unfortunately will not give .I will try to implement with atmega 8

Genilsonsa
Posts: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: Doubt FLOWCODE AVR

Post by Genilsonsa »

Ola Foristas friends I am using ATMEGA8515 and I would like to know if I can use it with an external eeprom TA24C04.is it possible to use it with feature of input sockets FLOWCODE I2C

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Doubt FLOWCODE AVR

Post by Benj »

Hello,

Yes the 24C04 looks like a standard I2C devices and should work just fine with the I2C Master component.

This blog topic may help to get you started.

http://www.matrixtsl.com/blog/simplifie ... c-and-spi/

Genilsonsa
Posts: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: Doubt FLOWCODE AVR

Post by Genilsonsa »

Hello Benj thank you for responding.My doubt in question is that this ATMEGA8515 he does not have this I2C already embedded in hardware.Will it work correctly.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Doubt FLOWCODE AVR

Post by Benj »

Hello,

The I2C master component has a software mode that should allow any device to output I2C master type signals. Simply set the Channel property to Software and then choose your pins for the SDA and SCL signals.

Genilsonsa
Posts: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: Doubt FLOWCODE AVR

Post by Genilsonsa »

Thank Benj for their help ,i did the test here in proteus and it worked I2C correctly.

Genilsonsa
Posts: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: Doubt FLOWCODE AVR

Post by Genilsonsa »

Hi Benj now i have another question,i am using ATMEGA8515 and when i use component of the keyboard I fake in flowcode always gives ok ,but when I fake the proteus error ,it seems that is a key fastened straight.For example if you tighten 1 key is activated.

Genilsonsa
Posts: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: Doubt FLOWCODE AVR

Post by Genilsonsa »

When i use any microcontroller PIC works OK.Only the error with AVR microcontroller.

Genilsonsa
Posts: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: Doubt FLOWCODE AVR

Post by Genilsonsa »

Hello is a simple program to show a button on the LCD display.

Genilsonsa
Posts: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: Doubt FLOWCODE AVR

Post by Genilsonsa »

This is the diagram in the Proteus.i already replaced the resistors pull up 10k which is in column.Now I put in the lines and nothing worked.
Attachments
Capturar2.PNG
(44.6 KiB) Downloaded 6887 times

Genilsonsa
Posts: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: Doubt FLOWCODE AVR

Post by Genilsonsa »

I realized that always comes with a column always in level 0.
Attachments
testeavr.fcf_avr
(11 KiB) Downloaded 406 times

Genilsonsa
Posts: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: Doubt FLOWCODE AVR

Post by Genilsonsa »

Hello to everyone after so insistently discovered that in fact the resistors have to be actually PULL LOW IN LINES.

Thanks living and learning
Attachments
PULL LOW.PNG
(9.14 KiB) Downloaded 6868 times

Post Reply