Por favor, identifícate o regístrate.
Moderadores: jamonazo2000, comepiedras
Foros wifree (k__) escribió:
Before:
_0000:
Goto 0x12 (start of code)
[Rest of code]
_0x1CB [End of old code]
After:
_0000:
29CD Goto 0x1cd
_01Cd:
3007 movlw 07h
0099 movwf CMCON (Digital IO)
1683 bsf STATUS,RP0 (Bank1)
019f clrf ANSEL (Digital IO)
1283 bcf STATUS,RP0 (Bank0)
2812 goto 0x0012 (start of code)
sonstwer ( wiifree forums) escribió:I don't think that will work - although the A/D converter is the only difference, it is also enabled after a power-on reset. As the WiiFree doesn't know about it, it won't disable it and GPIO0/1/2/4 will be configured as analog inputs (unless configured as output - that works anyway).
This little detail once caused me hours of "fun" while working on a 16F877-based project...
It would be rather nice if the WiiFree-Team would add the single instruction to disable the A/D converter (set ANSEL to 0), it won't do anything on the 12F629, but enables use of the 12F675 and possibly also the 12F683 (haven't checked the data sheet yet).

N3TKaT escribió:He creado una versión del código para 12F675. En teoría debe funcionar también en 12F629, pero no lo he probado. La podéis encontrar aquí.
, gracias... aunque de momento me toca seguir esperando al d2b... ( si necesitas testeo....
)
Usuarios navegando por este foro: No hay usuarios registrados visitando el foro y 0 invitados