Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20591

BASCOM-AVR : ATXMEGA: VPORT Configuration Overwriten : NEWTOPIC

$
0
0
Hi, if i configure more then 2 VPORT's the Vport Setup gets overwriten by the next Config statement.. Below is the Debug output from Atmel Studio 4. As you can see, CONFIG VPORT2 = C overwrite Register 0x00B2" with 00 and resets VPORT1. 70: Config Vport0 = A +00000114: E070...........LDI...R23,0x00.......Load immediate +00000115: 937000B2...STS...0x00B2,R23...Store direct to data space +00000117: E070...........LDI...R23,0x00.......Load immediate 70: Config Vport0 = A +00000118: 937000B3...STS...0x00B3,R23...Store direct to data space 71: Config Vport1 = B +0000011A: E170...........LDI...R23,0x10.......Load immediate +0000011B: 937000B2...STS...0x00B2,R23...Store direct to data space +0000011D: E070...........LDI...R23,0x00.......Load immediate 71: Config Vport1 = B +0000011E: 937000B3....STS...0x00B3,R23...Store direct to data space 72: Config Vport2 = C +00000120: E070...........LDI...R23,0x00.......Load immediate +00000121: 937000B2...STS...0x00B2,R23...Store direct to data space +00000123: E072...........LDI...R23,0x02.......Load immediate 72: Config Vport2 = C +00000124: 937000B3...STS...0x00B3,R23...Store direct to data space 90: Ddr0 = &B1111_1111 +00000127: EF7F...........SER R23...........Set Register +00000128: BB70..........OUT 0x10,R23...Out to I/O location 91: Ddr1 = &B1111_1111 +00000129: EF7F...........SER R23...........Set Register +0000012A: BB74..........OUT 0x14,R23...Out to I/O location 92: Ddr2 = &B1010_1111 +0000012B: EA7F...........LDI R23,0xAF....Load immediate +0000012C: BB78..........OUT 0x18,R23...Out to I/O location Regards [b:ff3b42fa1f][color=red:ff3b42fa1f](BASCOM-AVR version : 2.0.7.6 )[/b:ff3b42fa1f][/color:ff3b42fa1f]

Viewing all articles
Browse latest Browse all 20591

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>