Hello,
I'm new to flowcode, but find it great. I recently made a test flowchart to get a output blinking on a attiny13 from avr. i choosed to compile to hex.
I also use proteus to simulate. I selected the hex file but when i run the simulation, it does not work.
Is there a setting in flowcode that i'm missing? I choose the clock freq 9600000 and in proteus i choosec intern r/c also 9600000.
flowcode & proteus
- 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: flowcode & proteus
Hello
Are you setting the chip configuration in Flowcode up for internal RC or external RC. You may want to use the XTAL setting in Flowcode and then define the clock as an external crystal in Proteus. This is what I used to do to get this working anyway.
Are you setting the chip configuration in Flowcode up for internal RC or external RC. You may want to use the XTAL setting in Flowcode and then define the clock as an external crystal in Proteus. This is what I used to do to get this working anyway.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: flowcode & proteus
Hello,
thank you for your reply,
where can i choose internal or external in flowcode? I choose chip en then, clock frequency, and there i set it to 9600000.
i use the attiny13, so it is not possible to connect an xtal.
thanks!
thank you for your reply,
where can i choose internal or external in flowcode? I choose chip en then, clock frequency, and there i set it to 9600000.
i use the attiny13, so it is not possible to connect an xtal.
thanks!
- Attachments
-
- flowcode.jpg (54.38 KiB) Viewed 4781 times
- 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: flowcode & proteus
Hello
Ah ok I've never used a AVR device in Proteus. However I think the configuration is still causing the problem. Maybe Sean can help with this one.
Ah ok I've never used a AVR device in Proteus. However I think the configuration is still causing the problem. Maybe Sean can help with this one.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Valued Contributor
- Posts: 548
- Joined: Tue Jun 26, 2007 11:23 am
- Has thanked: 6 times
- Been thanked: 44 times
Re: flowcode & proteus
Unlike PIC devices, AVR configuration fuse settings can not be contained in the program .hex file, but are set by a separate process.
The Proteus configuration panel for the ATtiny13 (partially shown in your original image) seems to have the correct settings, with one exception. The RSTDISBL fuse partially controls the function assigned to the PB5/ADC0/RESET/PCINT5 pin. The indicated setting for this configuration fuse is the default, unprogrammed state. PB5 is therefore acting as a /RESET input. The device will not run unless this pin is pulled high, or the RSTDISBL fuse is programmed (0) - to disable the external reset function and turn the RB5 into a normal I/O pin.
If you want to program a real device from Flowcode, the Chip->Configure menu provides a panel to define and send the fuse settings. For the ATtiny13 I would suggest the values:
0x0,0xff
0x1,0x5a
The details are available from the Memory Programming section of the ATtiny13 data sheet.
The Proteus configuration panel for the ATtiny13 (partially shown in your original image) seems to have the correct settings, with one exception. The RSTDISBL fuse partially controls the function assigned to the PB5/ADC0/RESET/PCINT5 pin. The indicated setting for this configuration fuse is the default, unprogrammed state. PB5 is therefore acting as a /RESET input. The device will not run unless this pin is pulled high, or the RSTDISBL fuse is programmed (0) - to disable the external reset function and turn the RB5 into a normal I/O pin.
If you want to program a real device from Flowcode, the Chip->Configure menu provides a panel to define and send the fuse settings. For the ATtiny13 I would suggest the values:
0x0,0xff
0x1,0x5a
The details are available from the Memory Programming section of the ATtiny13 data sheet.