{"id":405,"date":"2012-06-30T08:11:53","date_gmt":"2012-06-30T06:11:53","guid":{"rendered":"http:\/\/www.michael-floessel.de\/mfblog\/?p=405"},"modified":"2023-02-19T11:46:59","modified_gmt":"2023-02-19T10:46:59","slug":"pic-programmieren-mit-mplab-teil-2-und-pic-12f675","status":"publish","type":"post","link":"https:\/\/www.michael-floessel.de\/mfblog\/pic-programmieren-mit-mplab-teil-2-und-pic-12f675\/","title":{"rendered":"PIC Programmieren mit MPLAB (Teil 2) und PIC 12F675"},"content":{"rendered":"<p>Ich habe mal eine Assembler Datei erstellt, die ein Programm f\u00fcr einen einfachen Blinker erzeugt. \u00a0Eine auf der Uniplatine angeschlossene LED blinkt an Port GP2 (+-\/ O3) im ungef\u00e4hr 0,5 Sekundentakt. Die .asm Datei wird (<a title=\"PIC Programmieren mit MPLAB (Teil 1)\" href=\"http:\/\/www.michael-floessel.de\/mfblog\/pic-programmieren-mit-mplab-teil-1\/\" target=\"_blank\" rel=\"noopener\">wie in MPLAB Teil 1 beschrieben<\/a>) sinnvollerweise in ein Projekt eingebunden.<\/p>\n<p>Die Einstellungen des PIC (die configuration Bits) sind in diesem Beispiel NICHT im Programm festgelegt, das muss in MPLAB mit &#8222;Configure -&gt; Configuration Bits&#8220; manuell festgelegt werden.<\/p>\n<p><a href=\"http:\/\/www.michael-floessel.de\/mfblog\/pic-programmieren-mit-mplab-teil-2-und-pic-12f675\/mplab_configbits_click\/\" rel=\"attachment wp-att-406\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-406\" title=\"mplab_configbits_click\" src=\"http:\/\/www.michael-floessel.de\/mfblog\/wp-content\/uploads\/2012\/06\/mplab_configbits_click-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.michael-floessel.de\/mfblog\/pic-programmieren-mit-mplab-teil-2-und-pic-12f675\/mplab_configbits_einfacherblinker\/\" rel=\"attachment wp-att-407\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-407\" title=\"mplab_configbits_einfacherblinker\" src=\"http:\/\/www.michael-floessel.de\/mfblog\/wp-content\/uploads\/2012\/06\/mplab_configbits_einfacherblinker-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p>In MPLAB wird die Konfiguration so beim Brennen festgelegt, bei anderen Programmierger\u00e4ten muss dies \u00fcber das jeweilige Programm geschehen!<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Bitte beachten, das der Vorwiderstand f\u00fcr die LED (bei <a title=\"Projekt Unischaltung f\u00fcr PIC 12F675\" href=\"http:\/\/www.michael-floessel.de\/mfblog\/projekt-unischaltung-fur-pic-12f675\/\" target=\"_blank\" rel=\"noopener\">Originalschaltung<\/a> irgendwas um 300 Ohm) noch zus\u00e4tzlich eingesetzt werden muss!<\/p>\n<p>Ich werde dieses Programm hier nach und nach &#8218;zerlegen&#8216; und erl\u00e4utern, falls Bedarf besteht. Es sind Kommentare im Programm eingef\u00fcgt, da diese aber nat\u00fcrlich haupts\u00e4chlich als eigene Gedankenst\u00fctze gedacht waren, k\u00f6nnte es gut sein, das jemand anderes da doch Probleme bekommt <img src=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/plugins\/classic-smilies\/img\/icon_biggrin.gif\" alt=\":-D\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/> <img src=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/plugins\/classic-smilies\/img\/icon_wink.gif\" alt=\";-)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n<p>Downloads:<\/p>\n<p><a title=\"PIC 12F675 Beispieldatei\" href=\"http:\/\/www.michael-floessel.de\/public\/12f675.asm\" target=\"_blank\" rel=\"noopener\">12F675.asm<\/a> (ungepackt)<\/p>\n<p><a title=\"PIC 12F675 Beispieldatei\" href=\"http:\/\/www.michael-floessel.de\/public\/12f675.zip\" target=\"_blank\" rel=\"noopener\">12F675.zip<\/a> (ZIP gepackt)<\/p>\n<p><a title=\"PIC Programmieren mit MPLAB (Teil 1)\" href=\"http:\/\/www.michael-floessel.de\/mfblog\/pic-programmieren-mit-mplab-teil-1\/\"><strong>\u00a0Zur\u00fcck zu Teil 1<\/strong><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><center><br \/>\n<!-- BEGIN PARTNER PROGRAM - DO NOT CHANGE THE PARAMETERS OF THE HYPERLINK --><br \/>\n<a href=\"http:\/\/partners.webmasterplan.com\/click.asp?ref=15882&amp;site=8948&amp;type=b19&amp;bnb=19\" target=\"_blank\" rel=\"noopener\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/banners.webmasterplan.com\/view.asp?ref=15882&amp;site=8948&amp;b=19\" alt=\"reichelt elektronik \u2013 Elektronik und PC-Technik\" width=\"468\" height=\"60\" border=\"0\" \/><\/a><br \/>\n<!-- END PARTNER PROGRAM --><\/center>&nbsp;<\/p>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>Related posts:<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 4;--relposth-columns_t: 3; --relposth-columns_m: 2\"><a href=\"https:\/\/www.michael-floessel.de\/mfblog\/was-sie-schon-immer-uber-lithium-ionen-akkus-wissen-wollten-elektronikpraxis\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><div class=\"relpost-block-single-image rpt-lazyload\" aria-label=\"akku_lithium_nimh_artikelbild\" role=\"img\" data-bg=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/uploads\/2013\/06\/akku_lithium_nimh_artikelbild-1000x288.jpg\" style=\"background: transparent no-repeat scroll 0% 0%; width: 1000px; height: 288px; aspect-ratio: 16\/9;\"><\/div><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: rgb(237,201,23);\"><h4 class=\"relpost_card_title\">Was Sie schon immer \u00fcber Lithium-Ionen-Akkus wissen wollten - Elektronikpraxis<\/h4><\/div><\/div><\/a><a href=\"https:\/\/www.michael-floessel.de\/mfblog\/pic-12f675-downloads\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><div class=\"relpost-block-single-image rpt-lazyload\" aria-hidden=\"true\" role=\"img\" data-bg=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/uploads\/2026\/04\/the-joker-pic-4-michael-floessel.de_.jpg\" style=\"background: transparent no-repeat scroll 0% 0%; width: 1000px; height: 288px; aspect-ratio: 16\/9;\"><\/div><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: rgb(237,201,23);\"><h4 class=\"relpost_card_title\">PIC 12F675 Downloads<\/h4><\/div><\/div><\/a><a href=\"https:\/\/www.michael-floessel.de\/mfblog\/was-fuers-auge\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><div class=\"relpost-block-single-image rpt-lazyload\" aria-hidden=\"true\" role=\"img\" data-bg=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/uploads\/2016\/12\/lupe-1000x288.jpg\" style=\"background: transparent no-repeat scroll 0% 0%; width: 1000px; height: 288px; aspect-ratio: 16\/9;\"><\/div><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: rgb(237,201,23);\"><h4 class=\"relpost_card_title\">Was f\u00fcr&#039;s Auge <img src=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/plugins\/classic-smilies\/img\/icon_wink.gif\" alt=\";-)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/h4><\/div><\/div><\/a><a href=\"https:\/\/www.michael-floessel.de\/mfblog\/amilo-a7600-cy26-wiederbelebung\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><div class=\"relpost-block-single-image rpt-lazyload\" aria-hidden=\"true\" role=\"img\" data-bg=\"https:\/\/www.michael-floessel.de\/mfblog\/wp-content\/uploads\/2013\/12\/amilo-a-cy-26-7600-einschalter-leiste.jpg\" style=\"background: transparent no-repeat scroll 0% 0%; width: 1000px; height: 288px; aspect-ratio: 16\/9;\"><\/div><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: rgb(237,201,23);\"><h4 class=\"relpost_card_title\">Amilo A7600 - CY26 - Wiederbelebung<\/h4><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>Ich habe mal eine Assembler Datei erstellt, die ein Programm f\u00fcr einen einfachen Blinker erzeugt. \u00a0Eine auf der Uniplatine angeschlossene LED blinkt an Port GP2 (+-\/ O3) im ungef\u00e4hr 0,5 Sekundentakt. Die .asm Datei wird (wie in MPLAB Teil 1 &hellip; <a href=\"https:\/\/www.michael-floessel.de\/mfblog\/pic-programmieren-mit-mplab-teil-2-und-pic-12f675\/\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":14812,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4,2269,18],"tags":[29,27,24,26,25,28],"class_list":["post-405","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-elektronik","category-pic-12f675","category-programmierung","tag-12f675","tag-brennen","tag-controller","tag-elektronik-2","tag-programmieren","tag-schaltung"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/posts\/405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/comments?post=405"}],"version-history":[{"count":0,"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/posts\/405\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/media\/14812"}],"wp:attachment":[{"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/media?parent=405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/categories?post=405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.michael-floessel.de\/mfblog\/wp-json\/wp\/v2\/tags?post=405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}