--00c09f93da558796a50485a6a881 Content-Type: text/plain; charset=ISO-8859-1 Fixed selected OSC problem Fixed delay_ms , delays 1 ms still does nothing ? what have I done wrong this time ? On Sun, May 2, 2010 at 8:59 PM, jim wrote: > Jason, > > 1 NOP = Oscillator frequency / 4 ie... 4 Mhz oscillator / 4 = 1uS, so 1 > NOP > would be 1uS in this case. > If you're using an 8Mhz oscillator, then 1 NOP would be 500 nS. 12Mhz > would > be 333nS, and so on. > > Regards, > > Jim > > -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of > Jason White > Sent: Sunday, May 02, 2010 7:51 PM > To: Microcontroller discussion list - Public. > Subject: Re: [PIC] Re: LCD Troubles ... > > How would I calculate how long 1 nop takes ?' > > never had problems with MCLR , I've never herd of problems like that ... > > -- > Jason White - Python and C++ Programmer > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- Jason White - Python and C++ Programmer --00c09f93da558796a50485a6a881 Content-Type: text/x-csrc; charset=US-ASCII; name="main_blink.c" Content-Disposition: attachment; filename="main_blink.c" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g8qmf7fq0 I2luY2x1ZGUgPHBpYy9waWMxNmY2OTAuaD4gLy8gRklFTEQgVEVTVAoKCi8qKgogKiogUHJvY2Vz c29yIHBpYzE2ZjY5MCAgQCA0IE1IegogKiogU0RDQyBDb21waWxlciAKICoqIAogKiogSU8gMTgg cGlucwogKiogICBQT1JUQSBSQTAtNSA6IDYgcGlucy8vCiAqKiAgIFBPUlRCIFJCNC03IDogNCBw aW5zCiAqKiAgIFBPUlRDIFJDMC03IDogOCBwaW5zCiAqKgogKiogQXV0aG9yIEphc29uIFdoaXRl CiAqKiBDb3B5cmlnaHQgKGMpIDIwMTAgSmFzb24gV2hpdGUgIDxXaGl0ZSBXYXRlcnMgU29mdHdh cmU+CiAqKiB3aGl0ZXdhdGVyc3NvZnR3YXJlaW5mb0BnbWFpbC5jb20gLCB3LXctc29mdC4wN3gu bmV0CiAqKi8KCi8vIENvbmZpZ3VyYXRpb25zCgp0eXBlZGVmIHVuc2lnbmVkIGludCBjb25maWc7 Cgpjb25maWcgYXQgMHgyMDA3IF9fQ09ORklHID0gX0lOVFJDX09TQ19OT0NMS09VVC8vIGludGVy bmFsIDMyIGtoeiBPU0MKCQkJCQkJCQkmIF9JRVNPX09GRiAgICAvLyBubyBuZWVkIGZvciBleHRl cm5hbCBPU0MKCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJiBfUFdSVEVfT04gICAg Ly8gcG93ZXIgdXAgdGltZXIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAmIF9XRFRf T0ZGICAgICAvLyBjaGlwIG5vdCBzbGVlcGluZyAsIG5vIG5lZWQKCiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgJiBfQ1BfT0ZGICAgICAgLy8gbm8gY29kZSBwcm90ZWN0aW9uICh0aGUg Y2hpcCBpcyBub3QgcmV3cml0YWJsZSB1bmRlciB5ZXMpCiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgJiBfQ1BEX09GRiAgICAgLy8gbm8gZGF0YSBwcm90ZWN0aW9uCgogICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICYgX01DTFJFX09GRiAgIC8vIHVzZSBleHRlcm5hbCByZXNl dCA/CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJiBfQk9SX09GRiAgICAgLy8gdXNp bmcgYmF0dGVyeXMgLCBhbGxvdyBsb3cgdm9sdGFnZQogICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIDsKaW50IGk9MDsKCgojZGVmaW5lIERCNCAgICAgICAgICAgICAgICAgUkMwCiNkZWZp bmUgREI1ICAgICAgICAgICAgICAgICBSQzEKI2RlZmluZSBEQjYgICAgICAgICAgICAgICAgIFJD MgojZGVmaW5lIERCNyAgICAgICAgICAgICAgICAgUkI0CiNkZWZpbmUgUlMgICAgICAgICAgICAg ICAgICBSQTAKI2RlZmluZSBSVyAgICAgICAgICAgICAgICAgIFJBMQojZGVmaW5lIEVOICAgICAg ICAgICAgICAgICAgUkEyCiNkZWZpbmUgRU5BQkxFICAgICAgICAgICAgICBFTj0xO2RlbGF5X21z KDE1KTtFTj0wOwojZGVmaW5lIERFTEFZICAgICAgICAgICAgICAgZGVsYXlfbXMoMTUpOwoKdm9p ZCBkZWxheV9tcyh1bnNpZ25lZCBsb25nIGxvb3ApIC8vIDRtaHogLCAuMDAxKjEwMDA9MQp7Cgl1 bnNpZ25lZCBsb25nIGo9MDsKCWxvb3AqPTEwMDsgLy8gMTAwICogMTAgTk9QcyA9IDEwMDAKCQoJ Zm9yIChqPTA7aiA8IGxvb3A7aisrKQoJewoJCV9fYXNtCgkJCQlub3AKCQkJCW5vcAoJCQkJbm9w CgkJCQlub3AKCQkJCW5vcAoJCQkJbm9wCgkJCQlub3AKCQkJCW5vcAoJCQkJbm9wCgkJCQlub3AK CQlfX2VuZGFzbTsKCX0KfQoKdm9pZCBjbWQodW5zaWduZWQgY2hhciBjKQp7CglpZihjICYgMHg4 MCkgREI3PTE7IGVsc2UgREI3PTA7CglpZihjICYgMHg0MCkgREI2PTE7IGVsc2UgREI2PTA7Cglp ZihjICYgMHgyMCkgREI1PTE7IGVsc2UgREI1PTA7CglpZihjICYgMHgxMCkgREI0PTE7IGVsc2Ug REI0PTA7CglFTkFCTEU7CglpZihjICYgMHgwOCkgREI3PTE7IGVsc2UgREI3PTA7CglpZihjICYg MHgwNCkgREI2PTE7IGVsc2UgREI2PTA7CglpZihjICYgMHgwMikgREI1PTE7IGVsc2UgREI1PTA7 CglpZihjICYgMHgwMSkgREI0PTE7IGVsc2UgREI0PTA7CglFTkFCTEU7CglkZWxheV9tcygxNSk7 Cn0KCgoKCnZvaWQgbWFpbigpCnsKCQoJUE9SVEEgPSAweDAwOwoJUE9SVEIgPSAweDAwOwoJUE9S VEMgPSAweDAwOwoJCglUUklTQSA9IDB4MDA7IC8vIHggeCB4IDAgIDAgMCAwIDAKCVRSSVNCID0g MHgwMDsgLy8gMCAwIDAgMCAgMCB4IHggeAoJVFJJU0MgPSAweDAwOyAvLyAwIDAgMCAwICAwIDAg MSAxCgkKCUFOU0VMID0gMHgwMDsKCUFOU0VMSD0gMHgwMDsKCQoJUlMgPSAwOwoJUlcgPSAwOwoJ RU4gPSAwOwoKCURFTEFZOwoJREVMQVk7CgkvLwoJLy8gRlM9RnVuY3Rpb24gU2V0CgkvLyBEUz1E aXNwbGF5IFNldAoJLy8gRU1TPSBFbnRyeSBNb2RlIFNldAoJLy8KCWNtZCgweDNjKTsgLy8gRlMg IDQgYml0IG1vZGUgLCAyIGxpbmUgLCA1eDcKCWNtZCgweDBmKTsgLy8gRFMgIERpc3BsYXkgT24s Q3Vyc29yIE9uLCBCbGluayBPbgoJY21kKDB4MDcpOyAvLyBFTVMgSW5jcmVtZW50IHRvIFJpZ2h0 ICwgU2hpZnQgVy8gRGlzcGxheQoJY21kKDB4MDEpOyAvLyBjbGVhcgoKCXdoaWxlICgxKQoJewkK Cgl9Cn0KCg== --00c09f93da558796a50485a6a881 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --00c09f93da558796a50485a6a881--