閲覧総計:33456 (本日:2 昨日:7)
新しいコンパイラーを使い始めた時、最初に確認するのが、そのコンパイラーのPICの
コンフィグレーションワードの設定記述書式である。
XC8のコンフィグレーションワードの記述書式について調べたので以下に示す。 13/09/23
【目次】(項目をクリックすると、そこに飛べます)
XC8のconfig記述書式 †
XC8のコンフィグレーションワードの記述書式はXC8ユーザーズガイドのp.36-37
2.5.14 Specifying Configuration Bitsの項に記載されています。
(XC8ユーザーズガイドは、C:\Program Files (x86)\Microchip\xc8\v1.20\docs\manual.pdf (6.2MB 564ページ)
にダウンロードされています。)
また、PICの型番ごとの具体的な記述書式は↓ここに記載されています。
C:\Program Files (x86)\Microchip\xc8\v1.20\docs\chips\PICの型番.html
例:C:\Program Files (x86)\Microchip\xc8\v1.20\docs\chips\16f628a.html
【16f628aの記述例】
#pragma config BOREN = OFF, CPD = OFF, FOSC = INTIO, MCLRE = OFF, WDTE = OFF, CP = OFF, LVP = OFF, PWRTE = ON
↓設定内容をコメント記述しておく記述書式(手間ですが私はこちらの書式の方を推奨します。)
#pragma config BOREN = OFF //4VブラウンアウトリセットOFF
#pragma config CPD = OFF //データーコードプロテクションOFF
#pragma config FOSC = INTOSCIO //内部発振使用
#pragma config MCLRE = OFF //マスタークリアー機能OFF(RA5入出力として使用)
#pragma config WDTE = OFF //ウォッチドッグタイマーOFF
#pragma config CP = OFF //プログラムコードプロテクションOFF
#pragma config LVP = OFF //低電圧プログラム書き込みOFF
#pragma config PWRTE = ON //パワーアップタイマーON
★この情報は役に立ちましたか?
- 普通tte???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? -- PICとMikroC
- http://www.coachcanadaoutlet.ca http://www.prada-outlet.us http://www.louboutinfemme-pascher.fr http://www.ralphlaurensale.eu.com http://www.jordan3.net http://www.louisvuitton-handbags.com.co http://www.poloralphlaurenhome.net http://www.abercrombie.net.co http://www.holister.name http://www.christian-louboutinoutlet.org http://www.rolexwatchesoutlet.us http://www.abercrombieandfitch.net.co http://www.coachoutletstoreonline.us.org http://www.katespade-outlet.us.com http://www.chanelhandbags.in.net http://www.longchamp-outlet.name http://www.jordan4.net http://www.raybans.name http://www.michaelkorsoutletus.eu.com http://www.louisvuittonoutlets.name http://www.airmax-nike.me.uk http://www.hollisterinc.name http://www.cheaptoms.us http://www.fendi.us.com http://www.michaelkorsoutlet-mk.eu.com http://www.hollister-clothing.net http://www.juicy-couture.us http://www.hollisterclothing.us http://www.pandorajewelry.net.co http://timberlandboots.hugeoff.net http://www.hollisterkids.net http://www.abercrombiestores.net http://www.louisvuittonoutlet-inc.us http://oakley.hugeoff.net http://www.ralph-lauren.net.co http://www.louis-vuitton.us.org http://www.louis--vuitton.us http://lululemon.suleymanaltun.com http://www.marc--jacobs.com http://www.airjordan-pascher.fr http://www.abercrombie.in.net http://www.louisvuitton-lvoutlet.me http://www.guccishoes.us.com http://www.coachoutlet.net.so http://www.michaelkorshandbags.com.so http://www.tory-burchoutlet.in.net http://www.rayban-sunglasses.com.co http://www.retrojordans.name http://www.concords11.com http://www.cheapjordansshoes.in.net http://www.p90xworkouts.us http://truereligion.officialbid.net http://www.guccioutlet.net.co http://burberry.stores.net.co http://www.michaelkorshandbags.eu.com http://www.edhardyclothing.in.net http://www.michaelkorsoutletonlinee.in.net http://www.chiflatiron.com.co http://www.oakleysunglassessale.in.net http://burberryoutlet.officialstore.com.co http://www.coachoutletstoreonline.eu.com http://www.gucci.net.co http://www.abercrombieandfitch.cc http://www.coach-outlet.us.com http://www.michaelkorsoutlet.net.so http://www.cocochaneluk.co.uk http://www.louisvuitton-outlet.us.com http://www.louisvuittonhandbags.net.co http://www.ralph-lauren-outlet.co http://www.louisvuittonuk.me.uk http://www.coach-outlet.us.org http://www.ray-bansunglasses.name http://www.louis-vuitton.net.co http://www.adidasshoes.name http://www.louis-vuittonoutlet.us.org http://www.true-religion-outlet.us.com http://www.michaelkorsonlineoutlet.in.net http://www.jordan13.org http://www.abercrombieoutlet.name http://www.kobeshoes.org http://www.hollister-co.net http://www.holisterclothingstore.com http://www.michaelkorsoutlet.com.so http://www.fitflops.org http://www.kobebryantshoes.name http://www.oakley-sunglasses.net.co http://www.kevindurantshoes.name http://www.pradauk.co.uk http://www.michaelkorsukpurse.co.uk http://www.gucci-outlet.org http://burberry.bidinc.org http://www.oakleysunglassescheap.name http://www.oakleysunglasses.us.com http://michaelkors.officialstore.com.co http://www.cheapsoccershoes.in.net http://www.coachoutlet-storeonline.in.net http://www.todsshoes.us http://www.jordan8.net http://www.christianlouboutinoutlet.org http://www.raybanglasses.me.uk http://www.abercrombieoutlet.us.com http://www.montblanc-pens.name http://www.christianlouboutin.name http://www.oakleysunglasses-wholesale.name http://www.raybansunglassesoutlet.name http://www.christianlouboutin-shoes.info http://www.raybansunglass.net.co http://www.ray-banoutlet.name http://www.michaelkors--outlet.in.net http://www.truereligion.eu.com http://www.coach-factoryoutlet.com.co http://www.outlet-celine.com http://www.christianlouboutinoutlet.com.co http://www.oakleysunglasses-outlet.name http://www.fitflop-shoes.us http://www.soccer-jerseys.us.com http://www.michaelkors.com.so http://www.todsoutlet.name http://www.cheap--nfljerseys.us.com http://www.abercrombie-fitch.cc http://www.tory-burch-outlet.name http://www.redchristianlouboutin.com http://www.hermes-birkin.us http://www.michaelkors-mkoutlet.in.net http://timberland.officialfree.net http://www.chanel-handbags.net.co http://www.christianlouboutinsale.name http://www.jordan11s.name http://www.pandorajewelry.name http://burberryoutlet.newestsite.net http://www.louisvuitton.us.com http://www.montblanc.com.co http://www.cheap-jordans.us.com http://www.toms--shoes.com http://beatsbydrdre.outletoff.net http://www.cheapjerseys-wholesale.us.com http://www.christianlouboutinsale.biz http://www.michael-korsoutletonline.eu.com http://www.abercrombiestore.org http://www.rayban-sunglasses.eu.com http://www.louis-vuittonhandbags.name http://www.oakley-sunglasses.com.co http://timberlandboots.dealsinc.net http://www.nike-airmax.me.uk http://www.jordan11.name http://www.saclongchamp--pascher.fr http://www.michaelkors-outlet.com.co http://www.gucci-outlet.name http://michaelkors.aphidsymposium.org http://www.cheaprolexwatches.name http://www.chanelbags.com.co http://www.toms-shoes.cc http://www.insanityworkout.com.co http://www.louisvuittonoutlet.net.co http://www.coachfactoryoutlet.com.so http://www.jordanretro.name http://coachoutlet.officialinc.net http://www.toms-outlet.com.co http://www.poloralph-lauren.net.co http://toryburchoutlet.stores.net.co http://www.michaelkorsbag.org.uk http://www.coachoutlet-factory.com.co http://www.dior-handbags.us http://chanelhandbags.newstore.com.co http://www.abercrombiekids.name http://www.coachfactoryoutletonline.eu.com http://www.jordan11concord.org http://www.abercrombie-fitch.com.co http://www.michaelkorsoutletclearance.in.net http://www.jordanconcords.net http://www.gucci-outlet.net.co http://www.lebronjames-shoes.net http://www.adidaswings.name http://www.celine-outlet.us http://www.hollisterclothing.info http://www.ghdhairstraighteners.com.co http://www.lebronjames-shoes.name http://www.oakleysunglasses-sale.in.net http://www.longchamphandbags.com.co http://truereligion.onlineinc.net.co http://www.hollisteroutlet.name http://www.katespade-handbags.eu.com http://www.ray-ban-sunglasses.org.uk http://www.jordan6.net -- 2015711yuanyuan?
- https://www.comprarextintoresbaratos.es/ https://www.comprarextintoresbaratos.es/extintores-asturias https://www.comprarextintoresbaratos.es/extintores-madrid https://www.comprarextintoresbaratos.es/extintores-barcelona https://www.comprarextintoresbaratos.es/extintores-zaragoza https://www.comprarextintoresbaratos.es/extintores-valencia https://www.comprarextintoresbaratos.es/extintores-alicante https://www.comprarextintoresbaratos.es/extintores-murcia https://www.comprarextintoresbaratos.es/extintores-sevilla https://www.comprarextintoresbaratos.es/extintores-huelva https://www.comprarextintoresbaratos.es/extintores-cordoba https://www.comprarextintoresbaratos.es/extintores-cadiz https://www.comprarextintoresbaratos.es/extintores-malaga https://www.comprarextintoresbaratos.es/extintores-jaen https://www.comprarextintoresbaratos.es/extintores-granada https://www.comprarextintoresbaratos.es/extintores-almeria https://www.comprarextintoresbaratos.es/extintores-pamplona https://www.comprarextintoresbaratos.es/extintores-co2/extintor-co2-2kg-dioxido-de-carbono-17.htm https://www.comprarextintoresbaratos.es/extintores/extintor-6-kg-de-polvo-abc-precio-10.html https://extintorescontraincendios.com/extintores-co2/extintor-co2-2-kg-24.html https://extintorescontraincendios.com/extintores-abc/extintor-6-kg-abc-precio-22.html https://extintorescontraincendios.com/ https://extintorescontraincendios.com/senalizacion/senal-extintor-contra-incendios-homologada-clase-b-36.html https://www.licenciasyproyectospromatec.es/ https://www.licenciasyproyectospromatec.es/legalizaciones-en-sevilla https://www.licenciasyproyectospromatec.es/certificaciones-en-sevilla https://www.licenciasyproyectospromatec.es/obras-e-instalaciones-en-sevilla https://www.licenciasyproyectospromatec.es/proteccion-contra-incendios https://www.licenciasyproyectospromatec.es/contacto-ingenieria-sevilla https://www.licenciasyproyectospromatec.es/blog/ http://ardawest.eu https://posicionamientojoseo.es https://westerostoday.es/ https://gardin.es https://gardin.es/Empresa-instaladora-cesped-artificial-sevilla https://gardin.es/Proyectos https://gardin.es/Zonas-privadas https://gardin.es/Zonas-publicas https://gardin.es/Nucleos-residenciales https://gardin.es/Parques-infantiles https://gardin.es/Contacto https://www.gruposervicum.es/ https://www.clinicacarrasco.com/ https://www.clinicacarrasco.com/medicina-estetica/ https://www.clinicacarrasco.com/depilacion-laser/ https://www.clinicacarrasco.com/promociones/ https://www.clinicacarrasco.com/noticias/ https://www.clinicacarrasco.com/contacto/ https://colegiolaluna.com/ https://colegiolaluna.com/guarderia/ https://colegiolaluna.com/educacion-infantil/ https://colegiolaluna.com/lengua-inglesa/ https://www.cocinaslubaysevilla.es/ https://www.cocinaslubaysevilla.es/cocinas-modernas https://www.cocinaslubaysevilla.es/reformas-de-cocinas https://www.cocinaslubaysevilla.es/promociones-cocinas https://www.cocinaslubaysevilla.es/contacto https://www.sevillavaloraciones.es https://www.madridvaloraciones.es -- Jose?
- She isn't alone in feeling conflicted about certain Y2K trends - and the standards they upheld - coming back to mainstream popularity. Rewind to the early 2000s, and you'd find magazines filled with images of celebs like Paris Hilton, Mischa Barton, and Kate Moss wearing trends that predominantly served their Moncler Jacket https://www.monclersoutlets.com slim, white, and airbrushed bodies. The current iteration of the style is selling for a whopping 4,300. It's not because of the vanity of youth that the word implies. The way we adorn ourselves reflects both the current material conditions Golden Goose Sneakers https://www.goldengoosers.com of our lives and the future lives we aspire to lead. But because writers' wardrobes are increasingly subsidized outside of their writing instead of because of it, those who dress best mislead readers about the realities of working in an industry in rapid decline. His iconic Bird on a Rock painting featuring a golden bird further evokes a feeling of being in the clouds. The pop-up will host a series of holiday-inspired activations throughout the season, include hand-painting Tiffany gift boxes and cards, calligraphy, and even tarot card readings. If you love stilettos and wear them on the regular, great If you're someone who, while wearing Celine Bag https://www.celinebagsales.com high-heels on a date, may think to yourself, I hope I don't have to walk too far to the next bar, then a more walkable heel is the answer. I love sweatsuits and dressing them up and down. Bring a taste of la dolce vita stateside with Dolce Gabbana's new collection of Saint Laurent Handbags Outlet https://www.saintlaurentbagsale.com fine wines. Created in partnership with Sicilian winemaker Donnafugata, there are two options to delight your inner sommelier. The pieces are muted in color and take on a vintage feeling while still remaining pertinent to modern dressing. The collection wouldn't be complete without split-toe Tabi boots, which come in recycled rubber and Dior Handbags https://www.diorbagsale.com leather, along with 5AC and Glam Slam handbags which are reissued in their original colors and textiles. She found her dream look Valentino Bag Sale https://www.valentinobagsale.com pictured here for 40 at a local thrift store I was very open to secondhand because I saw that the secondhand clothes were offering me something that didn't look like everything else and looked like things that I actually wanted to wear, she says. Galliano has emphasized the idea of hastily dressing throughout his tenure at the Maison, a garment still in motion, unfinished yet perfect in its incompleteness, seen here on coat shoulders with top-stitching still intact. But a global pandemic reared its head in February and postponed the tour indefinitely. That could be considered one of the low lows on Zouai's list, depending on what day you ask her, but today, she's optimistic. Zara is introducing its most comprehensive expression of high-end Golden Goose Sale https://www.goldengoosessneakers.com design and exquisite craftsmanship in the company's history, Zara Atelier. The design team will produce two limited-edition collections per year, both of which will be elevated, artistic interpretations of an iconic wardrobe staple. Vince Canada Goose Vests https://www.canadagoosesaler.com has become a go-to for effortless pieces that you're guaranteed to go back to again and again and again. Building on this ethos of longevity, the new Crafted by Vince capsule collection takes inspiration from both the ease and glamour of coastal California living and spins it into knitwear gold. -- Heidi Klum?
- https://anshell.com/agent/Andrew-Shell-Real-Estate-Broker -- Florida Real Estate?
- https://www.maalomsta.com/2022/12/toyota-rush.html https://www.maalomsta.com/2023/01/toyota-hilux.html https://www.maalomsta.com/2022/12/toyota-rav4.html https://www.maalomsta.com/2022/12/toyota-yaris.html https://www.maalomsta.com/2022/12/toyota-corolla-cross.html https://www.maalomsta.com/2022/12/toyota-fortuner.html https://www.maalomsta.com/2022/12/toyota-fj-cruiser.html https://www.maalomsta.com/2022/12/toyota-camry-release-date.html https://www.maalomsta.com/2023/01/toyota-innova.html https://www.maalomsta.com/2022/12/toyota-land-cruiser.html https://www.maalomsta.com/2022/12/toyota-prado.html https://www.maalomsta.com/2022/12/toyota-highlander.html https://www.maalomsta.com/2022/12/toyota-corolla.html https://www.maalomsta.com/2023/01/toyota-tundra.html https://www.maalomsta.com/2022/12/toyota-sienna.html https://www.maalomsta.com/2022/12/toyota-sequoia.html https://www.maalomsta.com/2022/12/toyota-camry.html https://www.maalomsta.com/2023/01/toyota-tacoma.html https://www.maalomsta.com/2023/01/toyota-shas.html https://www.maalomsta.com/2022/12/toyota-fortuner-diesel.html -- [[باليسيد 2024]]
PICC、HT-TECH Cの記述書式を踏襲 †
XC8は、PICC、HT-TECH Cの後継コンパイラーですので、PICC、HT-TECH CのCONFIG書式も
踏襲してくれています。
うれしいのは、HT-TECH C v9.81以前の古いCONFIG書式も、v9.81以降の新しいCONFIG
書式のどちらも認識してくれることです。この機能で過去のPICC、HT-TECH Cのプログ
ラム資産が有効に活用できるようになります。非常にありがたい機能です。
(16F628Aでの記述例)
【PICC、v9.81以前のHT-TECH CのCONFIG書式(古い書式)もXC8は認識してくれる】
__CONFIG(BORDIS & INTIO & MCLRDIS & WDTDIS & UNPROTECT & LVPDIS & PWRTEN);
↓設定内容をコメント記述しておく記述書式
__CONFIG(BORDIS & //Brown-out Detect disabled
INTIO & //INTOSC oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN
MCLRDIS & //RA5/MCLR/VPP pin function is digital input, MCLR internally tied to VDD
WDTDIS & //Watchdog Timer disabled
UNPROTECT & //Flash Program Memory Code Protection off
LVPDIS & //Low-Voltage Programming:RB4/PGM pin has digital I/O function, HV on MCLR must be used for programmin g
PWRTEN ); //Power-up Timer enabled
(16F628Aでの記述例)
【v9.81以降のHT-TECH CのCONFIG書式(新しい書式)もXC8は認識してくれる】
__CONFIG(BOREN_OFF & CPD_OFF & FOSC_INTOSCIO & MCLRE_OFF & WDTE_OFF & CP_OFF & LVP_OFF & PWRTE_ON);
↓設定内容をコメント記述しておく記述書式
__CONFIG(BOREN_OFF & //Brown-out Detect disabled
CPD_OFF & //Data memory code protection off
FOSC_INTOSCIO & //INTOSC oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN
MCLRE_OFF & //RA5/MCLR/VPP pin function is digital input, MCLR internally tied to VDD
WDTE_OFF & //Watchdog Timer disabled
CP_OFF & //Flash Program Memory Code Protection off
LVP_OFF & //Low-Voltage Programming:RB4/PGM pin has digital I/O function, HV on MCLR must be used for programmi ng
PWRTE_ON ); //Power-up Timer enabled
★この情報は役に立ちましたか?
変更したいconfigのみ変更する事の提案 †
高機能PICは、非常に多くのconfigを持ちます。その全てをひとつひとつ設定するのは
非常に大変です。また多くのconfigはデフォルトの設定値のままでOKなものがほとんど
です。
MPLAB X IEDは、PICのコンフィグレーションワードの状態を表示する機能を持っています。
この機能を利用し、まず、デフォルト設定値を確認し、変更の必要なconfigのみ、設定を
プログラムに記述する様にすれば、プログラミング効率が向上すると考えました。
PICのコンフィグレーションワードの表示方法は、
MPLAB XのメニューバーのWindows >>PIC Memory Views >>Configuration Bitsです。
【configのデフォルト値の確認方法】
MPLAB Xを起動し、所望のプロジェクトを開き、コンパイルを行う前に、Configuration Bits
の情報を表示する。この内容がデフォルトのconfig値です。
(16F628Aのデフォルトのconfig値)
8つのconfigの内、CPとCPDはデフォルトのoffのままで良いので、変更したい残りの
6つのconfigのみプログラムに希望設定値を記述します。
#pragma config FOSC = INTOSCIO //内部発振使用
#pragma config WDTE = OFF //ウォッチドッグタイマーOFF
#pragma config PWRTE = ON //パワーアップタイマーON
#pragma config MCLRE = OFF //マスタークリアー機能OFF(RA5入出力として使用)
#pragma config BOREN = OFF //4VブラウンアウトリセットOFF
#pragma config LVP = OFF //低電圧プログラム書き込みOFF
ここでビルドを行い、Configuration Bitsタブをクリックし、configの内容を表示すると、
全てのconfigが希望の内容に設定された事が確認できます。
configが8個しかない、16F628Aでは、大きな効果は体感できませんが、多くのconfigを
持つ高機能なPICのプログラムを行う際は、大きな効率化が実現できると考えます。
★この情報は役に立ちましたか?