RCpwmgen

  • Project_Hopeless
  • Project_Hopeless's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
20 Jul 2024 01:19 #305676 by Project_Hopeless
RCpwmgen was created by Project_Hopeless
I tried following the RCServoTest tutorial that uses pwmgen, and I'm not having any luck.  More searching and I'm thinking I should be using rcpwmgen

Can anyone point me in the direction of a tutorial or example how to use rcpwmgen?

Please Log in or Create an account to join the conversation.

More
20 Jul 2024 02:44 #305679 by PCW
Replied by PCW on topic RCpwmgen
There's this:


 

Please Log in or Create an account to join the conversation.

  • Project_Hopeless
  • Project_Hopeless's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
21 Jul 2024 00:09 - 21 Jul 2024 00:16 #305737 by Project_Hopeless
Replied by Project_Hopeless on topic RCpwmgen
 I reverted back to using PWMgen vs RCpwmgem, I just found more examples to reference.In my rservo_2.hal I commented the last line out as it kept posting an error.I'm close but I think I missing HAL pin assignments in the Main.HAL for the BOB PWM channel.  Or is it more than that?As always any guidance is appreciated. 

File Attachment:

File Name: main_2024-07-20.hal
File Size:3 KB

File Attachment:

File Name: rcservo_2.hal
File Size:1 KB

File Attachment:

File Name: rcservo_test01.ini
File Size:2 KB

File Attachment:

File Name: IO_Map_read.txt
File Size:7 KB
Attachments:
Last edit: 21 Jul 2024 00:16 by Project_Hopeless.

Please Log in or Create an account to join the conversation.

More
21 Jul 2024 00:24 #305738 by PCW
Replied by PCW on topic RCpwmgen
The rcpwmgen should be much easier to setup
as it does not require adding external components
to set the offset. It addition it has higher resolution
 

Please Log in or Create an account to join the conversation.

  • Project_Hopeless
  • Project_Hopeless's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
21 Jul 2024 14:58 - 21 Jul 2024 15:00 #305789 by Project_Hopeless
Replied by Project_Hopeless on topic RCpwmgen

The rcpwmgen should be much easier to setup
as it does not require adding external components
to set the offset. It addition it has higher resolution
 

My 7i96s I/O map reports one pwm function and pin function.  In some examples I came across, I saw mapping with a rcpwm function associated with a pwm pin function.  Are the they one and the same?

Is there a rcpwm component to load...  loadrt rcpwmgen output_type=0  and/or do I just call it a rcpwm pin... setp rcpwmgen.0

One side note, MesaCT reports one pwm on my card but the HAL config shows two. Just curious why this is.
Last edit: 21 Jul 2024 15:00 by Project_Hopeless.

Please Log in or Create an account to join the conversation.

More
21 Jul 2024 15:38 - 21 Jul 2024 15:50 #305790 by PCW
Replied by PCW on topic RCpwmgen
There is no loadrt line for firmware modules.

loadrt is use to load software components (like the software pwmgen)

If the specific firmware contains a pwmgen or rcpwmgen, that module
is available without any loadrt or addf. 

To use the rcpwm, you would need firmware that includes the rcpwm
module, for example, 7i96s_5abobrcd.bin has 4 RCPWMgens on the 7I96S's
P1 connector.

The MesaCT inconsistency is probably because the on card PWMgen
on the 7I96S is "hidden" by being assigned as a "local" function.
This was done to maintain GPIO compatibility with the 7I96.

You can show local I/O pins with mesaflash's --printlio command


 
Last edit: 21 Jul 2024 15:50 by PCW.

Please Log in or Create an account to join the conversation.

  • Project_Hopeless
  • Project_Hopeless's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
21 Jul 2024 16:29 #305797 by Project_Hopeless
Replied by Project_Hopeless on topic RCpwmgen
Under MesaCT I don't see that particular firmware as an option, and none have rcpwm.

When I go to the Mesa site to download that firmware it comes up "account suspend"!

Is there another location to grab firmware files?

Please Log in or Create an account to join the conversation.

More
21 Jul 2024 16:34 - 21 Jul 2024 16:58 #305799 by PCW
Replied by PCW on topic RCpwmgen
The store should be back online (had to update the DNS so make take a while to propagate)

In the mean time, this should work:

freeby.mesanet.com/software/parallel/7i96s.zip
 
Last edit: 21 Jul 2024 16:58 by PCW.
The following user(s) said Thank You: Project_Hopeless, my1987toyota

Please Log in or Create an account to join the conversation.

More
21 Jul 2024 20:15 #305814 by my1987toyota
Replied by my1987toyota on topic RCpwmgen

The store should be back online (had to update the DNS so make take a while to propagate)


 

I was hoping it wasn't due to the crowd strike debacle.

Please Log in or Create an account to join the conversation.

More
21 Jul 2024 20:18 #305815 by PCW
Replied by PCW on topic RCpwmgen
Nah, it was my late and careless editing of our DNS records
after our hosting provider moved servers around...
The following user(s) said Thank You: my1987toyota

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.095 seconds
Powered by Kunena Forum