Take the 2-minute tour ×
LEGO® Answers is a question and answer site for LEGO® and building block enthusiasts. It's 100% free, no registration required.

Specific to the NXC (Not eXactly C) programming language. Is it possible to access the memory registers on the ARM AT91SAM7S256 processor? I'm trying to investigate the use of Timer Interrupts to schedule a sampling routine.

I do know it's possible with nxt-gcc, but I don't know enough about NXC to understand if it would work. Would it not be possible to run with interrupts since the firmware uses the blocking I2C to communicate with sensors?

share|improve this question

1 Answer 1

NXC creates bytecode for the standard (or NXC upgraded) NXT virtual machine. The idea of this virtual machine is to create an abstraction layer to prevent malicious low level calls such as accessing memory registers on the processor.

So, without a low level compiler, such access would not be possible.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.