We want to connect an ADC to the GPIO of the C5515 and we want to achieve a sample rate as high as possible. According to Table 6.54 of the data sheet the minimum pulse width is one or two cycles depending on wether the input is activ or inactive. That means that the minimum possible sampling rate is half the clock frequency of the processor. My question is of how I can program a 2 cycle portread. A single repeat loop is to fast. A block repeat loop has an loop overhead of 3 cycles. Can I use a block repeat of three portread instructions? Does that guaranty the timing requirements? This would theoretically take 6 cycles. The average time per instruction would be 2 cycles.