Outils pour utilisateurs

Outils du site


romain

Documentation PIC 32

Des tutoriaux pour prendre en main le PIC 32 : http://umassamherstm5.org/tech-tutorials/pic32-tutorials

Documentation du chez Microchip : http://www.microchip.com/wwwproducts/devices.aspx?ddocname=en545660

TCP/IP

C:\Program Files\Microchip\Library\Microchip\Help

Réalisation d'une horloge + calendrier sur PIC 16

Regarder surtout les algo : http://users.tkk.fi/jalapaav/Electronics/Pic/Clock/index.html

Le code assembleur n'est pas compatible car pic16 et pic32 sont différents!

SNTP

Plein d'infos sur le NTP en général : http://alexandre.alapetite.fr/iup-gmi/ntp/index.html#sntp

Intéressant pour la fonction strftime(…) ⇒ (time.h) elle est disponible sur le PIC 32 http://www.developpez.net/forums/d563037/c-cpp/c/afficher-date-heure-optimisation-code/

configuration vitesse

http://www.microchip.com/forums/m404723.aspx

1ere instruction du main:

SYSTEMConfigPerformance(80000000); 

pour mettre des fonctions en ram plutot qu'en flash, afin d'avoir moins de wait states

void __attribute((section(.ramfunc))) myFunction(void){
 ...some code here...

}

Please note that running main() or ISRs from from RAM requires extra steps not showin in my example.

malloc

http://support2.microchip.com/KBSearch/KB_StdProb.aspx?ID=SQ6UJ9A00UU7H

project → build option→project→ MPLAB PIC32 Linker Heap size 8192 Stack size 1024

If you allocate a heap size of 8192 bytes it should work.

simulateur

Pour avoir le printf (et non, ca ne marche pas…) et les watchs qui se mettent à jours rapidement (et non, ca ne marche pas non plus !!!!!…) (il faut verifier en cliquant droit + refresh)

Debugger ->settings 
  UART1 IO-> enable uart1IO et cocher output windows
  Animation/realtime update ->enable realtime update et mettre à fastest

doc

asm inline

volatile et const

simulator

trigger ueye

file:/C:/Program%20Files/IDS/uEye/Help/uEye_Manual/index.html?hw_triggermodus.html ====mplabx sous linux==== librairie réseau: http://jap.hu/electronic/pic32esk/

romain.txt · Dernière modification : 2021/02/19 21:20 de 127.0.0.1