ILI9341_SPI

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

Moderator: Benj

Post Reply
ko062vvs
Posts: 4
Joined: Thu Aug 20, 2020 5:32 pm

ILI9341_SPI

Post by ko062vvs »

Hi. flowcode 8.2.2.15 there is a bug with ILI9341_spi. In channel 1 mode, the display does not start. with software everything is OK. the ili9341 software macro is also OK. Help me run ili9341 on the SPI interface. PS dividers used all possible ones. AVR frequency 16Mhz

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: ILI9341_SPI

Post by Benj »

Hello,

With the AVR and SPI in hardware mode, ensure you are either driving the hardware SS pin as the CS pin for the display or using the SS pin as an output. If the SS pin is left as an input it can cause the SPI module to go into slave mode and lock up the device. A raster nasty feature of AVR SPI hardware.

If you don't know which pin is your SS pin then let us know which AVR you're using and I'll look it up for you.

ko062vvs
Posts: 4
Joined: Thu Aug 20, 2020 5:32 pm

Re: ILI9341_SPI

Post by ko062vvs »

check again. connected to hardware SS. it doesn't work!!!
Attachments
Безымянный.jpg
Безымянный.jpg (132.89 KiB) Viewed 3127 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times

Re: ILI9341_SPI

Post by LeighM »

Try setting "Toggle CS" to "Yes"

ko062vvs
Posts: 4
Joined: Thu Aug 20, 2020 5:32 pm

Re: ILI9341_SPI

Post by ko062vvs »

direct CS installed on GND and VCC

does not work(

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times

Re: ILI9341_SPI

Post by LeighM »

Have you set the AVR SS pin as an output?

ko062vvs
Posts: 4
Joined: Thu Aug 20, 2020 5:32 pm

Re: ILI9341_SPI

Post by ko062vvs »

Все спасибо))) заработал))) :D

Post Reply