Persian_Men
Junior Member level 1
- Joined
- Nov 29, 2008
- Messages
- 18
- Helped
- 5
- Reputation
- 10
- Reaction score
- 4
- Trophy points
- 1,283
- Activity points
- 1,455
Code C - [expand] 1 2 3 4 for (x=0;x<1023;x++) { GPIOA->ODR=x; }
hiHi,
it seems like interchanged bits.
or your r2r ladder is not correct.
check if the two MSBs have the right R value and 2R value.
Klaus
i replace resistor with r=10k,and 2r=22k and get better ramp signal.
can i increase resolution up to 12bit or 14bit for use higher accuracy resistor's?
can i increase resolution up to 12bit or 14bit for use higher accuracy resistor's?
while(1)
{
for (x=0;x<1024;x+=1)
GPIOA->ODR=(uint16_t)x;
}
while(1)
{
for (x=0;x<1024;x+=10)
GPIOA->ODR=(uint16_t)x;
}
while(1)
{
for (x=0;x<1024;x+=20)
GPIOA->ODR=(uint16_t)x;
}
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?