Вы находитесь на странице: 1из 2

LQTMY-Tanger

M.SALMANI

Le C PIC 16F84 : 2me partie

1. Introduction
Le C 16F84 possde un jeu de 35 instructions. Chaque instruction est code sur un mot de 14 bits qui
contient le code opration (OC) ainsi que l'oprande. A part les instructions de saut, toutes les instructions
sont excutes en un cycle d'horloge. Sachant que lhorloge fournie au C est prdivise par 4, si on utilise
par exemple un quartz de 4 MHz, on obtient donc 1000000 cycles/seconde, cela nous donne une puissance
de lordre de 1 MIPS (1 Million dInstructions Par Seconde). Avec un quartz de 20 MHz, on obtient une
vitesse de traitement dautant plus rapide.

2. Organisation des instructions


21. Instructions orientes octets (adressage direct) : Figure 1
Ce sont des instructions qui manipulent les donnes sous forme doctets. Elles sont codes de la
manire suivante :
6 bits pour linstruction : cest logique, car comme il y a 35 instructions, il faut 6 bits pour pouvoir
les coder toutes.
1 bit (d) pour indiquer si le rsultat obtenu doit tre conserv dans le registre de travail
(accumulateur) W de lunit de calcul (W pour Work) ou sauv dans un registre f (f pour file).
Reste 7 bits pour encoder l'adresse de loprande, mais 7 bits ne donnent pas accs la mmoire
RAM totale, cest ainsi quon on utilise le bit RP0 du registre STATUS pour complter le 8me bit.
Remarque : (W, f ?d) signifie que le rsultat est stock soit dans W si d=0, soit dans f si d=1.
Figure 1

Sciences et technologies lectriques

Niveau 2me

Sciences de lingnieur

Unit ATC

24

LQTMY-Tanger

Le C PIC 16F84 : 2me partie

M.SALMANI

22. Instructions orientes bits : Figure 2


Ce sont des instructions destines manipuler directement les bits dun registre d'une case mmoire.
Elles sont codes de la manire suivante :
4 bits pour linstruction.
3 bits pour indiquer le numro du bit manipuler (de 0 7).
7 bits pour indiquer loprande.
Figure 2

23. Instructions oprant sur une donne (adressage immdiat) : Figure 3


Ce sont des instructions qui manipulent des donnes qui sont codes dans linstruction directement.
Elles sont codes de la manire suivante :
Linstruction est code sur 6 bits.
Elle est suivie dune valeur immdiate code sur 8 bits (donc de 0 255).
Figure 3

24. Instructions de saut et appel de procdures : Figure 4


Ce sont des instructions qui provoquent une rupture dans la squence de droulement du programme.
Elles sont codes de la manire suivante :
Les instructions sont codes sur 3 bits.
La destination est code sur 11 bits.
Figure 4

Sciences et technologies lectriques

Niveau 2me

Sciences de lingnieur

Unit ATC

25

Вам также может понравиться

  • Généralités: PIC 16F84
    Généralités: PIC 16F84
    Документ8 страниц
    Généralités: PIC 16F84
    Selmane Saoud
    Оценок пока нет
  • TDu C
    TDu C
    Документ49 страниц
    TDu C
    nawzat
    Оценок пока нет
  • 16F877 - Ch1 Introduction
    16F877 - Ch1 Introduction
    Документ9 страниц
    16F877 - Ch1 Introduction
    Miloud Bilal Zenazel
    Оценок пока нет
  • Tdii2 PIC18F 2009
    Tdii2 PIC18F 2009
    Документ40 страниц
    Tdii2 PIC18F 2009
    Ahmed Mellouli
    Оценок пока нет
  • TP 2:programmation en Assembleur: I. Objectifs
    TP 2:programmation en Assembleur: I. Objectifs
    Документ4 страницы
    TP 2:programmation en Assembleur: I. Objectifs
    youssef_dabliz
    100% (1)
  • Chapitre 2 Microcontroleur Pic 16f877
    Chapitre 2 Microcontroleur Pic 16f877
    Документ8 страниц
    Chapitre 2 Microcontroleur Pic 16f877
    Redouane Amian
    Оценок пока нет
  • Correction Examen AO 2021 2022
    Correction Examen AO 2021 2022
    Документ4 страницы
    Correction Examen AO 2021 2022
    ghostninja745
    Оценок пока нет
  • Introduction
    Introduction
    Документ9 страниц
    Introduction
    abderezakpc
    Оценок пока нет
  • Calculateur Et Interfacage
    Calculateur Et Interfacage
    Документ18 страниц
    Calculateur Et Interfacage
    Lynda MOKRANI
    Оценок пока нет
  • Chapitre 3 Le Microcontroleur Pic 16f84
    Chapitre 3 Le Microcontroleur Pic 16f84
    Документ29 страниц
    Chapitre 3 Le Microcontroleur Pic 16f84
    Samen Lempire
    Оценок пока нет
  • Controle Corrigé Type uPuC 2021-2022
    Controle Corrigé Type uPuC 2021-2022
    Документ6 страниц
    Controle Corrigé Type uPuC 2021-2022
    bendjeddou ammar
    Оценок пока нет
  • MCIL3 - C - Chapitre 2 - II
    MCIL3 - C - Chapitre 2 - II
    Документ8 страниц
    MCIL3 - C - Chapitre 2 - II
    Turbo NSX
    Оценок пока нет
  • Correction Rattrapage 2013
    Correction Rattrapage 2013
    Документ10 страниц
    Correction Rattrapage 2013
    abir cherif
    Оценок пока нет
  • Pic 8259
    Pic 8259
    Документ16 страниц
    Pic 8259
    Amine HM
    Оценок пока нет
  • Exercice 0:: Tp1: Architecture Des Microcontroleurs
    Exercice 0:: Tp1: Architecture Des Microcontroleurs
    Документ3 страницы
    Exercice 0:: Tp1: Architecture Des Microcontroleurs
    أمين
    Оценок пока нет
  • TP Microprocesseur Controleur
    TP Microprocesseur Controleur
    Документ32 страницы
    TP Microprocesseur Controleur
    Salma Nsalma
    Оценок пока нет
  • Coach Uart
    Coach Uart
    Документ6 страниц
    Coach Uart
    Salah Dahouathi
    Оценок пока нет
  • Compte Rendu Du TP PIC16F877 Par AIMANE BOURASS
    Compte Rendu Du TP PIC16F877 Par AIMANE BOURASS
    Документ13 страниц
    Compte Rendu Du TP PIC16F877 Par AIMANE BOURASS
    Ayman Brs
    100% (1)
  • TD 1 Microcontroleur
    TD 1 Microcontroleur
    Документ5 страниц
    TD 1 Microcontroleur
    silone
    Оценок пока нет
  • MODULE N°09 TLC-BTS Microcontrôleurs
    MODULE N°09 TLC-BTS Microcontrôleurs
    Документ28 страниц
    MODULE N°09 TLC-BTS Microcontrôleurs
    Walid Mahmoud
    Оценок пока нет
  • Chap7 PIC16F84
    Chap7 PIC16F84
    Документ12 страниц
    Chap7 PIC16F84
    keylog
    100% (1)
  • Chapitre 4
    Chapitre 4
    Документ13 страниц
    Chapitre 4
    boucheneb
    Оценок пока нет
  • Calculateur Et Interfacage
    Calculateur Et Interfacage
    Документ9 страниц
    Calculateur Et Interfacage
    Wissam Tiza
    Оценок пока нет
  • Examen Partiel 2019
    Examen Partiel 2019
    Документ9 страниц
    Examen Partiel 2019
    Fatima Ezzahra
    Оценок пока нет
  • Travaux Dirigés
    Travaux Dirigés
    Документ6 страниц
    Travaux Dirigés
    Marcelin Soukroumde
    Оценок пока нет
  • CHAP - 02 MODES D ADRESSAGE DU 6809 DE MOTOROLA I. Définition
    CHAP - 02 MODES D ADRESSAGE DU 6809 DE MOTOROLA I. Définition
    Документ26 страниц
    CHAP - 02 MODES D ADRESSAGE DU 6809 DE MOTOROLA I. Définition
    oassarikhi
    Оценок пока нет
  • MC60 2010a MS01 01
    MC60 2010a MS01 01
    Документ5 страниц
    MC60 2010a MS01 01
    Abdelilah Kahaji
    Оценок пока нет
  • Cours PWM
    Cours PWM
    Документ43 страницы
    Cours PWM
    zakarii
    67% (3)
  • TP Microcontroleur 22
    TP Microcontroleur 22
    Документ41 страница
    TP Microcontroleur 22
    chaimaa.er-raffali
    Оценок пока нет
  • TP4 Odira
    TP4 Odira
    Документ7 страниц
    TP4 Odira
    haroun kabili
    Оценок пока нет
  • Chapitre IV
    Chapitre IV
    Документ15 страниц
    Chapitre IV
    MohamedLashab
    Оценок пока нет
  • Pic 16F84 PDF
    Pic 16F84 PDF
    Документ21 страница
    Pic 16F84 PDF
    Ahmed Janati
    Оценок пока нет
  • Les Microcontroleurs Pic16f84
    Les Microcontroleurs Pic16f84
    Документ28 страниц
    Les Microcontroleurs Pic16f84
    badreddine
    Оценок пока нет
  • Cahier de Charge
    Cahier de Charge
    Документ9 страниц
    Cahier de Charge
    Eric Dassie
    100% (1)
  • MCIL3 - C - Chapitre 7 - II
    MCIL3 - C - Chapitre 7 - II
    Документ8 страниц
    MCIL3 - C - Chapitre 7 - II
    Turbo NSX
    Оценок пока нет
  • Jeux 2
    Jeux 2
    Документ2 страницы
    Jeux 2
    youssef lechguar
    Оценок пока нет
  • TD Pic
    TD Pic
    Документ5 страниц
    TD Pic
    nawzat
    Оценок пока нет
  • Architecture Des Processeurs
    Architecture Des Processeurs
    Документ67 страниц
    Architecture Des Processeurs
    ayaayaaya456789
    Оценок пока нет
  • TD2 Corrigée P
    TD2 Corrigée P
    Документ5 страниц
    TD2 Corrigée P
    farid regragui
    Оценок пока нет
  • Le Microcontroleur PIC16F876
    Le Microcontroleur PIC16F876
    Документ13 страниц
    Le Microcontroleur PIC16F876
    hmema13
    Оценок пока нет
  • TD VHDLPP
    TD VHDLPP
    Документ23 страницы
    TD VHDLPP
    Mël Djä
    Оценок пока нет
  • Exercices Sur Le Bus I2c PDF
    Exercices Sur Le Bus I2c PDF
    Документ3 страницы
    Exercices Sur Le Bus I2c PDF
    Ayoub Tiouale
    Оценок пока нет
  • TP Pic 16f84
    TP Pic 16f84
    Документ6 страниц
    TP Pic 16f84
    gamerzxs681
    Оценок пока нет
  • Correction (1) Converti
    Correction (1) Converti
    Документ41 страница
    Correction (1) Converti
    Bouchra Bourass
    50% (2)
  • Evaluation
    Evaluation
    Документ5 страниц
    Evaluation
    Bucky's Doll
    Оценок пока нет
  • TH4 1 Eval
    TH4 1 Eval
    Документ5 страниц
    TH4 1 Eval
    Mehdi Bouchami
    Оценок пока нет
  • TD Architecture Des Ordinateurs PDF
    TD Architecture Des Ordinateurs PDF
    Документ17 страниц
    TD Architecture Des Ordinateurs PDF
    AhmedBoukad
    Оценок пока нет
  • Nizar Programme
    Nizar Programme
    Документ29 страниц
    Nizar Programme
    iramole med
    100% (1)
  • Cours-PIC Mise A Jour
    Cours-PIC Mise A Jour
    Документ69 страниц
    Cours-PIC Mise A Jour
    Amil Dhaf
    Оценок пока нет
  • TP04 Oodira
    TP04 Oodira
    Документ6 страниц
    TP04 Oodira
    haroun kabili
    Оценок пока нет
  • TD1 Arm
    TD1 Arm
    Документ4 страницы
    TD1 Arm
    azza memmi
    Оценок пока нет
  • Presentation Pic 16f84a - New1
    Presentation Pic 16f84a - New1
    Документ6 страниц
    Presentation Pic 16f84a - New1
    Davy Jean Draha
    Оценок пока нет
  • Chapitre II
    Chapitre II
    Документ15 страниц
    Chapitre II
    djamaloo
    Оценок пока нет
  • TP No 7 Microcontroleurs
    TP No 7 Microcontroleurs
    Документ4 страницы
    TP No 7 Microcontroleurs
    KhawlaManaa
    Оценок пока нет
  • Rapport de L
    Rapport de L
    Документ11 страниц
    Rapport de L
    chaimae aznague
    Оценок пока нет
  • Slide Animation1 Atmega16bis
    Slide Animation1 Atmega16bis
    Документ25 страниц
    Slide Animation1 Atmega16bis
    Nadhir Bnd
    Оценок пока нет
  • TD 2 - Archi - Sol
    TD 2 - Archi - Sol
    Документ4 страницы
    TD 2 - Archi - Sol
    Youcef Benjillali
    Оценок пока нет
  • chapitre 5 microcontroleurs
    chapitre 5 microcontroleurs
    Документ28 страниц
    chapitre 5 microcontroleurs
    benachour ismail
    Оценок пока нет
  • Téléphonie numérique et téléphonie IP
    Téléphonie numérique et téléphonie IP
    От Everand
    Téléphonie numérique et téléphonie IP
    Оценок пока нет
  • Agence Cih
    Agence Cih
    Документ2 страницы
    Agence Cih
    Smirnov Artaéév
    Оценок пока нет
  • Fiche Fonction Distribution
    Fiche Fonction Distribution
    Документ59 страниц
    Fiche Fonction Distribution
    Smirnov Artaéév
    Оценок пока нет
  • Anglais 1
    Anglais 1
    Документ4 страницы
    Anglais 1
    Smirnov Artaéév
    Оценок пока нет
  • 6 Interv Sur Incidents
    6 Interv Sur Incidents
    Документ26 страниц
    6 Interv Sur Incidents
    Smirnov Artaéév
    Оценок пока нет
  • 26247
    26247
    Документ205 страниц
    26247
    Smirnov Artaéév
    Оценок пока нет
  • Secteur Santé
    Secteur Santé
    Документ104 страницы
    Secteur Santé
    Smirnov Artaéév
    Оценок пока нет
  • Maintenance
    Maintenance
    Документ7 страниц
    Maintenance
    Bechir Thl
    Оценок пока нет
  • 7 Protect & Signalisation
    7 Protect & Signalisation
    Документ35 страниц
    7 Protect & Signalisation
    Smirnov Artaéév
    100% (1)
  • XK1472002FRC 001
    XK1472002FRC 001
    Документ178 страниц
    XK1472002FRC 001
    Smirnov Artaéév
    Оценок пока нет
  • Anglais 1
    Anglais 1
    Документ4 страницы
    Anglais 1
    Smirnov Artaéév
    Оценок пока нет
  • 8 Guide D - Intervention
    8 Guide D - Intervention
    Документ21 страница
    8 Guide D - Intervention
    Smirnov Artaéév
    Оценок пока нет
  • Transaction Divers Technicommercial
    Transaction Divers Technicommercial
    Документ32 страницы
    Transaction Divers Technicommercial
    Smirnov Artaéév
    Оценок пока нет
  • C Partie3
    C Partie3
    Документ3 страницы
    C Partie3
    Smirnov Artaéév
    Оценок пока нет
  • C Partie5
    C Partie5
    Документ2 страницы
    C Partie5
    Smirnov Artaéév
    Оценок пока нет
  • Annonce Acces Crmef2015qualifiant
    Annonce Acces Crmef2015qualifiant
    Документ3 страницы
    Annonce Acces Crmef2015qualifiant
    Smirnov Artaéév
    Оценок пока нет
  • Livre Blanc Evaluation Psychometrique
    Livre Blanc Evaluation Psychometrique
    Документ40 страниц
    Livre Blanc Evaluation Psychometrique
    Smirnov Artaéév
    Оценок пока нет
  • 6-Repèrage Alphanumèrique
    6-Repèrage Alphanumèrique
    Документ12 страниц
    6-Repèrage Alphanumèrique
    Smirnov Artaéév
    Оценок пока нет
  • C Partie1
    C Partie1
    Документ4 страницы
    C Partie1
    Smirnov Artaéév
    Оценок пока нет
  • Aide CANECO Mulhouse
    Aide CANECO Mulhouse
    Документ15 страниц
    Aide CANECO Mulhouse
    moezborchani
    Оценок пока нет
  • Document Formation Poste HT - MT
    Document Formation Poste HT - MT
    Документ48 страниц
    Document Formation Poste HT - MT
    Smirnov Artaéév
    100% (2)
  • Torsades de Reseau BT
    Torsades de Reseau BT
    Документ2 страницы
    Torsades de Reseau BT
    Smirnov Artaéév
    Оценок пока нет
  • 3 - Code Manoeuvres
    3 - Code Manoeuvres
    Документ49 страниц
    3 - Code Manoeuvres
    Smirnov Artaéév
    Оценок пока нет
  • Technologies MT
    Technologies MT
    Документ94 страницы
    Technologies MT
    Smirnov Artaéév
    100% (1)
  • 6 Interv Sur Incidents
    6 Interv Sur Incidents
    Документ26 страниц
    6 Interv Sur Incidents
    Smirnov Artaéév
    Оценок пока нет
  • 6 Interv Sur Incidents
    6 Interv Sur Incidents
    Документ26 страниц
    6 Interv Sur Incidents
    Smirnov Artaéév
    Оценок пока нет
  • Guide Explicatif CCE-2007 - Scetion 24 - Aires de Soins
    Guide Explicatif CCE-2007 - Scetion 24 - Aires de Soins
    Документ1 страница
    Guide Explicatif CCE-2007 - Scetion 24 - Aires de Soins
    Smirnov Artaéév
    100% (1)
  • Feuilletage
    Feuilletage
    Документ27 страниц
    Feuilletage
    Smirnov Artaéév
    Оценок пока нет
  • 1 Technique de Coupure
    1 Technique de Coupure
    Документ63 страницы
    1 Technique de Coupure
    Smirnov Artaéév
    Оценок пока нет
  • Annexe I
    Annexe I
    Документ1 страница
    Annexe I
    Smirnov Artaéév
    Оценок пока нет