Hello,
I hope that somebody could be so kind to give me some feedback on this issue.
I am trying to reset the FTDI FT812 used by the display in hte subject in order to be able to program it.
I have previous experience with FTDI FT801 and I am trying to reuse part of the code. At least the initialization part.
My problem is that even if I am following the instruction in the Programming Guide the code that works for the FT800 is not working for the FT812.
I used an oscilloscope in order to sniff the signals and everything looks fine but when I am trying to read register FT800_REG_ID i get 0xff (255) and not 0x7c.
I assume that I am doing something wrong but I am not able to spot it.
Any help would be really appreciated.
Kind regards,
Claudio Melis
Unable to reset FT812 in Riverdi Display 7"
- strahinja.jacimovic
- mikroElektronika team
- Posts: 200
- Joined: 18 Dec 2017 18:19
Re: Unable to reset FT812 in Riverdi Display 7"
Hi,
What exactly is your code and what Programming Guide did you follow?
Kind regards,
What exactly is your code and what Programming Guide did you follow?
Kind regards,
Strahinja Jacimovic
-
- Posts: 3
- Joined: 23 Feb 2018 16:10
Re: Unable to reset FT812 in Riverdi Display 7"
Hello Strahinja,
I have used FT81x Series Programmers Guide available at http://brtchip.com/wp-content/uploads/S ... _Guide.pdf
You can find here attached the file that we use to configure the FT812 it is a reworked version of the original ft800 file.
the .c contains an fsm that is called by our scheduler but I am always stuck in
case FT800_FSM_WAIT_ALIVE:
//check that FT800 is alive
if(FT800RawRead8(FT800_REG_ID) != 0x7c)
return;
FT800FSM.status = FT800_FSM_CONFIGURE;
break;
I don't know if you can help me. But any suggestion would be really appreciated.
MCU is Texas Instruments f28m36.
Regards,
Claudio
register is never equal to 0x7c
I have used FT81x Series Programmers Guide available at http://brtchip.com/wp-content/uploads/S ... _Guide.pdf
You can find here attached the file that we use to configure the FT812 it is a reworked version of the original ft800 file.
the .c contains an fsm that is called by our scheduler but I am always stuck in
case FT800_FSM_WAIT_ALIVE:
//check that FT800 is alive
if(FT800RawRead8(FT800_REG_ID) != 0x7c)
return;
FT800FSM.status = FT800_FSM_CONFIGURE;
break;
I don't know if you can help me. But any suggestion would be really appreciated.
MCU is Texas Instruments f28m36.
Regards,
Claudio
register is never equal to 0x7c
- strahinja.jacimovic
- mikroElektronika team
- Posts: 200
- Joined: 18 Dec 2017 18:19
Re: Unable to reset FT812 in Riverdi Display 7"
Hi,
According to the code snippet you provided, the code is not supposed to be 0x7C.
In the IF clause, the part "!= 0x7c" means not equal to.
Kind regards,
According to the code snippet you provided, the code is not supposed to be 0x7C.
In the IF clause, the part "!= 0x7c" means not equal to.
Kind regards,
Strahinja Jacimovic
-
- Posts: 3
- Joined: 23 Feb 2018 16:10
Re: Unable to reset FT812 in Riverdi Display 7"
The problem was in the SPI Mode.
I used mode 2 but correct mode is 0.
You can close this post .
Regards,
Claudio
I used mode 2 but correct mode is 0.
You can close this post .
Regards,
Claudio