As far as I know UCB0 and UCB1 are functionally identical. As long as your ISR name matches that in the Interrupt Vector Table, it can be any name. The hazard there is that if they don't match the build won't tell you about it (your program will just crash). The ISER assignment looks fine. [I personally would use "NVIC_EnableIRQ(EUSCIB1_IRQn)" so I don't have to check the value, but I checked it before responding.] What is the purpose of wiggling SCK and MOSI at startup? Since (at that moment) FSYNC (P9.3) is asserted, I suspect the first transaction would be off-by-1-bit. More generally: What is your symptom exactly? You mentioned that the waveforms look correct.
↧