Hello Sayali
My one experience with Python was some HWIL I was modifying for NASA Satellite 
to test my bootloader written in C. I'm a C programmer I'm not familiar with 
this library where did you get this time.sleep(2) statement? 
Maybe you are not importing the correct objects. If SLEEP exists you need to 
find how to pull it in if it doesn't exist write your own. I'm sure you can see 
this  sleep is used to generate a square wave of a certain frequency you can 
see on the the o scope on the pin.Sleep is going to somehow convert the 2 into 
seconds or milliseconds etc and put into a processor register of a timer for 
that so you might need to study TRM.If I was a professor teaching 
microprocessors Id leave that to the student to complete to see if he's got the 
ambition to dig deep and understand the chip.Getting some code to compile on a 
target sounds more like some programming exercise. If you  want to learn 
embedded software engineer not be a programmer learning to write such code will 
be helpful and require read TRM.
Good Luck

Sent from Yahoo Mail on Android 
 
  On Wed, Jan 30, 2019 at 7:29 AM, sayali kutwal<[email protected]> 
wrote:   Hello.     It's not my collage assignment. I just want to learn the 
beaglebone for curiosity. So i want to generate the clock on pin P8_8 (timer7) 
beaglebone.For this i write python code...
importAdafruit_BBIO.GPIO as GPIO
import time
outpin="P8_8"
GPIO.setup(outpin,GPIO.OUT)
GPIO.setclock(outpin,3000)
while True:
GPIO.output(outpin,GPIO.HIGH)
time.sleep(2)
GPIO.output(outpin,GPIO.LOW)

time.sleep(2)----------------------------------------------But  there is not 
any library for timer.so i am not getting anything.after searching i find the 
term DMTimer to generate clock for beaglebone but i dont know how to do it.so 
please guide me step by step.
Thanking you.
On Wed, Jan 30, 2019 at 4:11 AM 'Mark Lazarewicz' via BeagleBoard 
<[email protected]> wrote:

Sorry Dennis I guess I'm not very tactful. I'll try and rephrase.Doesn't 
programming any internal microprocessor registers start with the TRM 
programming in any language? I can't comprehend not reading the TRM then using 
a bunch of library functions in some code I found without understanding what 
the code is doing. I guess if it works and you don't care about how it works 
that's fine. I've always been fascinated with the details of the 
registers.these newer chips are quite complex and reading the relavent chapter 
takes some time and can be daunting but I always figured that was how you 
really understood the low level

Sent from Yahoo Mail on Android 
 
  On Tue, Jan 29, 2019 at 1:16 PM, Dennis Lee Bieber<[email protected]> 
wrote:   On Tue, 29 Jan 2019 18:55:49 +0000 (UTC), "'Mark Lazarewicz' via
BeagleBoard" <[email protected]>
declaimed the following:

>DennisI think he wants you to code his college assignment for him and he 
>doesn't wanna read the TRM.They used to give code examples in TRM today's 
>future engineers I'm getting scared?
>

    No doubt -- but that I don't provide (I haven't read enough of the TRM
to even attempt this using C).

    My normal response is "how would you do that in C?" and then maybe
assist in porting the C to Python.


-- 
    Wulfraed                Dennis Lee Bieber        AF6VN
    [email protected]    HTTP://wlfraed.home.netcom.com/ 

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/ah915et5l7b340l0mi95cm7teaeiudg7qe%404ax.com.
For more options, visit https://groups.google.com/d/optout.
  


-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to a topic in the Google 
Groups "BeagleBoard" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/beagleboard/znMvwYwvrgY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/1338123516.629027.1548801671823%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.



-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAC6i%3DDLPik5vQzeoJ3VOcGCqRMuuxiebtv700-iysR%3D%3DyL%3Do9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/537017732.189217.1548860220524%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to