Please find attached the sample code for Pwm.
I am not able to find Pwm Output on pin 20 of P1A of J1 socket.
Please guide me in this.
Thanks for the valuable solution.
But I was making ACTL register 1 because, in H/W ref manual it is mentioned that it will enable the PWM_AH channel.
PFA image of the part of H/W manual telling about this.
I am not able to see the PWM configuration settings in the code. Are you using AUTOSAR APIs to program the PWM? or your own custom code
Please find attached configurations file.
Yes Nabeel I am using Autosar API to code PWM.
Message was edited by: Kishore K
Few changes in Config file
We are not experts in AUTOSAR standard so I think we will be of little help here. However if you facing some problems in getting the PWM up and running you can ask some specific question related to PWM hardware and we will be more than happy to help you.
Can you post the PWM register dump(or screenshot ) after PWM is configured and also PORT MUX/FER settings so that we can see if PWM register are getting programmed properly
In Autosar also we will be doing normal register updating for INIT API.
PFA register dumps for PORTF and PWM0 registers.
Your intention is to use only PWM_AH channel right?
From the dump I can see PORTF_MUX is wrongly programmed. For using PWM_AH bits 3:2 should be '00' while it is showing as '01'. So this is a mistake.
Can you correct this. In between I will check the PWM settings.
In PWM settings:
>>You are enabling chopping on channel A, Is that needed in your application
>>You have enabled tripping, so make sure the trip input is connected to inactive state other channel will be tripped
>>In ACTL register you have programmed bit 0 to 1 which will disable the PWM_AH channel. To enable it this bit should be 0
Most probably this a mistake in HRM.
Ya Nabeel. Thanks a lot for your valuable time. All your information was very helpful. Now I am able to achieve the desired PWM output.
Retrieving data ...