ADC를 이용한 랜덤 넘버 생성 방법은 다음과 같다.
random = 0;
for (i=0; i<8; i++)
{
ADC_start();
while (ADC_fin());
random |= ((ADC_data() & 0x01) << i);
}
댓글 없음:
댓글 쓰기