Flowcode V5 AVR with MMC and test with ISIS 7

Moderator: Benj

ylanchec
Posts: 54
Joined: Mon Jan 14, 2013 10:14 pm
Has thanked: 3 times
Been thanked: 2 times
Contact:

Flowcode V5 AVR with MMC and test with ISIS 7

Postby ylanchec » Thu Dec 17, 2015 3:56 pm

Hi,

I have made a simple software with a FAT16 component and an LCD 16x2, i'm just trying the function Fat16_INIT, it works in simulation but not with a simulation with Proteus 7.

http://www.koxo.net/init-sdcard.zip

What is the problem ?

ylanchec

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

Re: Flowcode V5 AVR with MMC and test with ISIS 7

Postby Benj » Thu Dec 17, 2015 6:18 pm

Hello,

I got a 404 error when I tried to visit the link.

ylanchec
Posts: 54
Joined: Mon Jan 14, 2013 10:14 pm
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Flowcode V5 AVR with MMC and test with ISIS 7

Postby ylanchec » Thu Dec 17, 2015 7:04 pm

Hi Benj,

Sorry, there was an uppercase char in the filename...

the link is good now.

Best regards

ylanchec

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

Re: Flowcode V5 AVR with MMC and test with ISIS 7

Postby Benj » Tue Dec 22, 2015 6:23 pm

Hello,

First of all I recommend that you either output a value to pin B2 or you pull B2 up to VDD using say a 10K resistor. If B2 is left as an input and has a logic low signal then the SPI will go into slave mode and lock up any master SPI communications. This is one to look out for on the AVR devices, caught me out a few times.

What's the Proteus simulation doing? Are you getting any error codes on the LCD?