Difference between revisions of "Cameras"
Jump to navigation
Jump to search
m |
|||
Line 35: | Line 35: | ||
== Camera registers == | == Camera registers == | ||
− | The cameras are controlled and initialized with [[I2C_Bus#Cameras|I2C]]. For retrieving camera video data, [[NDMA]] with arm9 startup mode 11(camera) is used. | + | The cameras are controlled and initialized with [[I2C_Bus#Cameras|I2C]]. The below registers are accessed by the arm9. |
+ | |||
+ | {| class="wikitable" border="1" | ||
+ | |- | ||
+ | ! ADDRESS | ||
+ | ! WIDTH | ||
+ | ! NAME | ||
+ | |- | ||
+ | | 0x04004200 | ||
+ | | 2 | ||
+ | | REG_CAMUNK | ||
+ | |- | ||
+ | | 0x04004202 | ||
+ | | 2 | ||
+ | | REG_CAMCNT | ||
+ | |- | ||
+ | | 0x04004204 | ||
+ | | 4 | ||
+ | | REG_CAMDATA | ||
+ | |} | ||
+ | |||
+ | == REG_CAMUNK == | ||
+ | {| class="wikitable" border="1" | ||
+ | |- | ||
+ | ! BIT | ||
+ | ! DESCRIPTION | ||
+ | |- | ||
+ | | 15-0 | ||
+ | | ? | ||
+ | |} | ||
+ | |||
+ | == REG_CAMCNT == | ||
+ | {| class="wikitable" border="1" | ||
+ | |- | ||
+ | ! BIT | ||
+ | ! DESCRIPTION | ||
+ | |- | ||
+ | | 13-0 | ||
+ | | ? | ||
+ | |- | ||
+ | | 14 | ||
+ | | ? | ||
+ | |- | ||
+ | | 15 | ||
+ | | Frame transfer enable | ||
+ | |} | ||
+ | |||
+ | == REG_CAMDATA == | ||
+ | {| class="wikitable" border="1" | ||
+ | |- | ||
+ | ! BIT | ||
+ | ! DESCRIPTION | ||
+ | |- | ||
+ | | 31-0 | ||
+ | | Video data | ||
+ | |} | ||
+ | |||
+ | For retrieving camera video data, [[NDMA]] with arm9 startup mode 11(camera) is used with this src register. Transferred length varies per resolution. In the video data, each pixel is 2 bytes. | ||
== See also == | == See also == |
Revision as of 05:55, 6 August 2011
This article is a stub. You can help DSiBrew by expanding it. |
The Nintendo DSi contains two cameras. The cameras can be used in the Nintendo DSi Camera application or DSi games that are compatible.
Specifications
- 0.3 Megapixel
- 640*480 VGA
- No zoom and no flash.
- Photos saved in JPG format (saved in DCIM/ folder on the SD/SDHC or in the internal memory)
Applications/Games compatible
Applications
Games
- Asphalt 4 : Elite Racing (DSiWare)
- Brain Challenge (DSiWare)
- Classic Word Games
- Cooking Coach
- Pop SuperStar : Road To Celebrity (DSiWare)
- Real Football 2009 (DSiWare)
- WarioWare : Snapped! (DSiWare)
- iCarly
- Pokemon Black,White (2010,JP)
- Castle of Magic (DSiWare)
- Photo Dojo (DSiWare)
Camera registers
The cameras are controlled and initialized with I2C. The below registers are accessed by the arm9.
ADDRESS | WIDTH | NAME |
---|---|---|
0x04004200 | 2 | REG_CAMUNK |
0x04004202 | 2 | REG_CAMCNT |
0x04004204 | 4 | REG_CAMDATA |
REG_CAMUNK
BIT | DESCRIPTION |
---|---|
15-0 | ? |
REG_CAMCNT
BIT | DESCRIPTION |
---|---|
13-0 | ? |
14 | ? |
15 | Frame transfer enable |
REG_CAMDATA
BIT | DESCRIPTION |
---|---|
31-0 | Video data |
For retrieving camera video data, NDMA with arm9 startup mode 11(camera) is used with this src register. Transferred length varies per resolution. In the video data, each pixel is 2 bytes.