How do I perform register operations for SPESENSE?

Asked 1 years ago, Updated 1 years ago, 460 views

I would like to operate the SPESENSE register directly in the Arduino IDE 1.8.13 environment.

I read the official development guide Fast digital I/O below.
https://developer.sony.com/develop/spresense/docs/arduino_developer_guide_ja.html#_fast_digital_io

In Arduino, byte input=PINB|~0b00000011; is used to manipulate registers and
I was reading D8 and D9 pin inputs at the same time, but how should I program them in SPESENSE?
If I know how to set the register, I can program it myself...
Thank you for your cooperation.

c++ spresense arduino

2022-09-30 22:04

1 Answers

I think the register specification is listed in LSI's User Manual.
https://www.sony-semicon.co.jp/products/smart-sensing/spresense/

If you look at this document and the source code for the Spresense SDK, see
GPIO is divided into one register for each pin, so I don't think I can read it at the same time.

Since it is multi-core, each core may have a separate register so that the pins can be operated independently.


2022-09-30 22:04

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.