대충(?) 찾아봐도 약어가 안나오는데
NSSP mode는 NSS Pulse mode 인 것 같고
All SPI interfaces support NSS pulse mode, (STM32H757xI 데이터시트 발췌) |
NSS는 Negative Slave Select가 아닐까 추정된다.
SCK : Serial Clock. Alternatives: SCK, SCLK, CLK, SCL MOSI : "Master" Out → "Slave" In. Now can be read as "Main" Out "Sub" In, or can use these alternatives: SIMO, MTSR, SPID - correspond to MOSI on both main and sub devices, connects to each other SDI, DI, DIN, SI, SDA - on sub-only devices; Various abbreviations for "Serial" "Data" "In". Connects to MOSI (or alternative names) on main SDO, DO, DOUT, SO - on main-only devices; Various abbreviations for "Serial" "Data" "Out". connects to MOSI (or alternative names) on sub COPI, PICO for "peripheral and controller",[36][37] or COTI for "controller" and "target"[38] MISO : "Master" In ← "Slave" Out. Now can be read as "Main" In "Sub" Out, or can use these alternatives: SOMI, MRST, SPIQ - correspond to MISO on both main and sub devices, connects to each other SDO, DO, DOUT, SO - on sub-only devices; connects to MISO (or alternative names) on main SDI, DI, DIN, SI - on main-only devices; connects to MISO (or alternative names) on sub CIPO, POCI,[36][37] or CITO[38] SS : "Slave" Select (same functionality as Chip Select). Alternatives: SS, SS, SSEL, NSS, /SS, SS# (sub select) CS, CS (chip select) CE (chip enable) |
[링크 : https://en.wikipedia.org/wiki/Serial_Peripheral_Interface]
SPI 통신은 크게 4개 모드가 있는데
Clock Polarity 와 Clock Phase의 조합으로 총 4가지가 존재한다.
[링크 : https://en.wikipedia.org/wiki/Serial_Peripheral_Interface]
[링크 : https://igotit.tistory.com/entry/SPI-mode-4%EC%A2%85-CPOL-CPHA]
STM32CubeIDE 에서는
CPOL은 high, low,
CPHA는 1edge , 2edge로 명명되는데
ST32H757xI 메뉴얼에서는 아래와 같이 그려주고 있고
MOSI가 먼저 가면 MISO가 응답오는 식으로 반응하고
읽는 타이밍은 CPHA / CPOL의 폴링 혹은 라이징 엣지에서 읽게 되는데, 앞의 엣지, 뒤의 엣지 식으로 표현되기도 하낟.
CPHA가 lsb로 생각하면 외우기가 좀 쉬우려나?
[링크 : https://igotit.tistory.com/entry/SPI-mode-4종-CPOL-CPHA]
'embeded > Cortex-M7 STM' 카테고리의 다른 글
stm32 __weak (0) | 2024.10.08 |
---|---|
stm32 modbus (0) | 2024.09.26 |
FDE CIE (0) | 2024.09.06 |
code alignement factor? (0) | 2024.09.06 |
DEBUG_JTRST (0) | 2024.09.06 |