Forums
5
Product Forums
21
General Purpose MicrocontrollersGeneral Purpose Microcontrollers
i.MX Forumsi.MX Forums
QorIQ Processing PlatformsQorIQ Processing Platforms
Identification and SecurityIdentification and Security
Power ManagementPower Management
MCX Microcontrollers
S32G
S32K
S32V
MPC5xxx
Other NXP Products
Wireless Connectivity
S12 / MagniV Microcontrollers
Powertrain and Electrification Analog Drivers
Sensors
Vybrid Processors
Digital Signal Controllers
8-bit Microcontrollers
ColdFire/68K Microcontrollers and Processors
PowerQUICC Processors
OSBDM and TBDML
Solution Forums
4
Smart Home
Power & Energy
Mobile Robotics
Motor Control
Software Forums
16
MCUXpresso Software and ToolsMCUXpresso Software and Tools
CodeWarriorCodeWarrior
MQX Software SolutionsMQX Software Solutions
Model-Based Design Toolbox (MBDT)Model-Based Design Toolbox (MBDT)
FreeMASTER
eIQ Machine Learning Software
Embedded Software and Tools Clinic
S32 SDK
S32 Design Studio
GUI Guider
Zephyr Project
Voice Technology
Application Software Packs
Secure Provisioning SDK (SPSDK)
Processor Expert Software
MCUXpresso Training Hub
Topics
8
Mobile Robotics - Drones and RoversMobile Robotics - Drones and Rovers
NXP Training ContentNXP Training Content
University ProgramsUniversity Programs
Rapid IoT
NXP Designs
SafeAssure-Community
OSS Security & Maintenance
Using Our Community
Cloud Lab Forums
2
Hardware
Cloud Lab Knowledge Base
Knowledge Bases
0
Ideas
Blogs
フォーラム
ナレッジベース
アイデア
ブログ
NXP.COM
サインイン
ヘルプ
日本語
英语(美国) | English (US)
日本語 | Japanese
中文 | Chinese (Simplified)
Home
:
製品フォーラム
:
S12 / MagniVマイクロコントローラ
:
PWM0 on MC9S12C32
PWM0 on MC9S12C32
すべてのコミュニティ
このカテゴリ
この掲示板
ナレッジベース
ユーザー
製品
キャンセル
提案をオンにする
自動提案では、入力時に可能な一致が提案されるので検索結果を素早く絞り込むことができます。
次の結果を表示
表示
限定
|
次の代わりに検索
もしかして:
オプション
RSS フィードを購読する
トピックを新着としてマーク
トピックを既読としてマーク
このトピックを現在のユーザーにフロートします
ブックマーク
購読
ミュート
印刷用ページ
PWM0 on MC9S12C32
07-16-2008
01:40 PM
1,318件の閲覧回数
lasteem1
Contributor I
新着としてマーク
ブックマーク
購読
ミュート
RSS フィードを購読する
ハイライト
印刷
不適切なコンテンツを報告
I'm attempting to get the PWM working on the S12C32 here is what I'm doing to config the pwm:
PWMCLK=0x01; //clock SA is the source clock
PWMSCLA=0x32; //Clock SA = Clock A / (2 * PWMSCLA)
PWMPRCLK=0x04;//prescaler=bus clock/16
PWMPER0=0xF9;//period = channel clock period * (2 * PWMPERx)
PWMDTY0=0x7B; //Duty cycle = [(PWMPERx PWMDTYx)/PWMPERx] * 100%
PWME=0x01; //enable PWM0
I would greatly appreciate the help if anyone can help me figure out what I"m doing wrong. Thanks in advance.
ラベル
(1)
ラベル
ラベル:
General
0
件の賞賛
返信
すべてのフォーラムトピック
前のトピック
次のトピック
2 返答(返信)
07-17-2008
02:36 PM
568件の閲覧回数
allawtterb
Contributor IV
新着としてマーク
ブックマーク
購読
ミュート
RSS フィードを購読する
ハイライト
印刷
不適切なコンテンツを報告
I don't see anything wrong with your initialization, what exactly is your problem?
0
件の賞賛
返信
07-17-2008
02:41 PM
568件の閲覧回数
lasteem1
Contributor I
新着としてマーク
ブックマーク
購読
ミュート
RSS フィードを購読する
ハイライト
印刷
不適切なコンテンツを報告
I finally figured out that I was not configuring the mux for the pin. Thanks.
0
件の賞賛
返信
返答を投稿