ここで、C のオシロスコープに波形を出力する必要があります。これは、立ち上がりのこぎり波である必要があります。コードが正しいかどうかはわかりません。ヘルプや提案はありますか?
while(1)
{
for (i = 1; i < 360; i++);
// Check to see if status.TRDY is 1
while(*(base+2) & 0x40 != 1);
// while shift register is not empty
// Make the sawtooth pattern
if (saw == 0x1fff){
saw = 0x1000;
}
else {
saw = saw+1;
}
// transmit sawtooth to the oscilloscope
*(base+1) = saw;
}