512x 38kHz = 19.4560MHz.In assembly you need 2 instructions to output a value to a output port so you need a system clock of 19.4560MHz x 2 = 38,912MHz.How do you manage to run a AtTiny at 38.912MHz? and where do you get an xtal of 38.912MHz?If you use a 4.864MHz xtal you can only sample at: 4.864 / 2 = 2.432MHz. 2.432MHz / 38kHz = 64 samples.
512x 38kHz = 19.4560MHz.
ReplyDeleteIn assembly you need 2 instructions to output a value to a output port so you need a system clock of 19.4560MHz x 2 = 38,912MHz.
How do you manage to run a AtTiny at 38.912MHz? and where do you get an xtal of 38.912MHz?
If you use a 4.864MHz xtal you can only sample at: 4.864 / 2 = 2.432MHz. 2.432MHz / 38kHz = 64 samples.