Go to advanced search

by SteveA
Thu Apr 16, 2015 10:04 am
Forum: Advanced users
Topic: Accurate timing for real time control
Replies: 40
Views: 64749

Re: Accurate timing for real time control

Joan, you're a star... I said it was my misunderstanding.

Thanks
by SteveA
Thu Apr 16, 2015 9:46 am
Forum: Advanced users
Topic: Accurate timing for real time control
Replies: 40
Views: 64749

Re: Accurate timing for real time control

Thank you Joan for showing me the relevant documentation. I had seen elsewhere that the offset addresses to be added to the ARM interrupt register, 0x7E00B00, started at 0x200; for example 0x210 is Enable IRQs 1, and so on. This is what is causing me confusion because the code used by petzval uses o...
by SteveA
Wed Apr 08, 2015 5:13 pm
Forum: Advanced users
Topic: Accurate timing for real time control
Replies: 40
Views: 64749

Re: Accurate timing for real time control

Hello I know it is an old post, but the petzval's code was an excellent way of reading the 1MHz system tick counter whilst disabling interrupts in order to get accurate reads. All worked fine until I changed to using the RPI2. I have altered the base address from 0x20000000 to 0x3f000000 (due to the...
by SteveA
Tue Mar 31, 2015 10:29 am
Forum: General programming discussion
Topic: how to find out which rev
Replies: 30
Views: 9349

Re: how to find out which rev

Thanks to all of you for your help. I use C and you have pointed me in the right direction.

Regards
by SteveA
Mon Mar 30, 2015 5:15 pm
Forum: General programming discussion
Topic: how to find out which rev
Replies: 30
Views: 9349

Re: how to find out which rev

Hello

Does anyone know of an update to Joan's excellent method to get the revision number using her function containing:
filp = fopen ("/proc/cpuinfo", "r"); , etc

I now find that this no longer works with the newly released RPI2 board.

Thanks

Go to advanced search