Home > other >  ISD4004 MOSI=1; SCLK=1; How to understand
ISD4004 MOSI=1; SCLK=1; How to understand

Time:09-18

Beginners SPI
When the ISD4004 chip program, there are
IF (! K_STOP)//stop button

{
Delay1Ms (15);//delay
if(! K_STOP)
{
while(! K_STOP);
Stop ();//send the stop command
L_REC=1;//
lights went outL_PLAY=1;//
lights went outPlay_flag=0;//remove play
SS=1;
MOSI=1;
SCLK=1;

MOSI=1;
SCLK=1; How to understand

CodePudding user response:

MOSI=1; SCLK=1; Is MOSI=high level; SCLK=high level;

CodePudding user response:

reference 1st floor xuyaqi029 response:
MOSI=1; SCLK=1; Is MOSI=high level; SCLK=high level;
this I know, I'm sorry, I didn't express clearly?? I mean why mosi and SCLK for high level

CodePudding user response:

SPI work has 4 modes, look at this place is bad to say, you can look at the code in front of the definition, and combined with the operation mode of the SPI to analyze why the high level

CodePudding user response:

refer to the second floor twistzz12 response:
Quote: refer to 1st floor xuyaqi029 response:
MOSI=1; SCLK=1; Is MOSI=high level; SCLK=high level;
this I know, I'm sorry, I didn't express clearly? I mean why mosi and SCLK for high level

This is stop chips into the state, the chip inside the manual will give you the sequence of stop and open state, why high for you to see the data sheet,

CodePudding user response:

This code is the SPI data transmission, you
MOSI=1;//initialization MOSI feet high level
SCLK=1;//initialization SCLK feet high level
  • Related