Answers.Body: <p>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. </p>
  
  <p>So, without a low level compiler, such access would not be possible.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-01T02:50:25.627Z
Answers.LastActivityDate: 2015-04-01T02:50:25.627Z
Answers.UserDisplayName: Thaddeus Hughes
Body: <p>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.</p>
  
  <p>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?</p>
  
Tags: <nxc>
Title: Accessing ARM Processor Memory Registers through NXC
UserDisplayName: Mechatronica
ThreadText: # Accessing ARM Processor Memory Registers through NXC
  
  (Asked by: username_0 on 2013-09-02)
  
  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?
  
  **Tags:** nxc
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-04-01. Score: 3 | Accepted answer
  
  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.
  
  
  ---
  
  