[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux] Timer (PWM) kernel module problem
Hi Jose
> From: Jose Torres
> However the output I get when I read is not the same:
> Writing Register 00000000 on Timer instance 0 @ BaseAddress: 41C20000
| Value = 00000656
> Reading Register 00000000 on Timer instance 0 @ BaseAddress: 41C20000
| Value = 000007D6
> Writing Register 00000010 on Timer instance 0 @ BaseAddress: 41C20000
| Value = 00000656
> Reading Register 00000010 on Timer instance 0 @ BaseAddress: 41C20000
| Value = 00000000
> I have used the xilinx_gpio code as a guideline while writing my own
code and I have made
> sure to modify the code provided by xilinx to use u32 instead of
Xuint32.
> Can anyone provide assistance as to why it is not writing 0x00000656
as it should? I have
> been battling this problem for weeks now and have run out of
solutions.
Hm, I am not really sure if you have the same problem I had. I was using
the GPIO expansion header on my board. The registers are tri-state
registers and therefore you have to set the direction before you can
write to them.
In case of my expansion header the base adress itself was the tri-state
"state" which had to be set to 0 to work as "output" and base adress +
32 bits was the register with the header "pins".
HTH and sorry if I'm completely wrong
Jarno Radde
This message and attachment(s) are intended solely for use by the addressee and may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable law.
If you are not the intended recipient or agent thereof responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify the sender immediately by telephone and with a 'reply' message.
Thank you for your co-operation.
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/